Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 virtualenv activate.ps1 hash error

I try to work with a virtual environment under windows

I'm using Python 3.6, installed on c:\Python36-32 and everything I do as a command runs from the PowerShell console running as administrator.

> I created a project folder located on c:\myProject and a folder for the environment ; mkdir virtenv.

> Then I launched virtualenv .\Virtenv -> OK.

> Then I run the order .\virtenv\scripts\activate.ps1 -> ExecutionPolicy block the script
> Set-ExecutionPolicy AllSigned and then .\virtenv\scripts\activate.ps1 -> Error "the hash of the file did not match the signature"

>if I download the original archive and replace activate.ps1 I get the same error
>if I remove the security (set-executionpolicy remotesigned) everything works, the environment is activated well.

Is it normal that the the official archive file hash is not good?
how can I avoid blowing up security?

Thanks you in advance
(Jan-12-2018, 08:41 PM)po20 Wrote: >if I download the original archive and replace activate.ps1 I get the same error
Virtual environment is build into 3.6 trough venv.
Here a tutorial .
Also read first part so you can stop using terrible PowerShell when cmder is as good as any shell on Linux.
Thanks for cmder, I started to think that in fact python was not made for fact it's done, with cmder !

for the rest I do not understand : said "Support Python 3.6." ; I do not explain why it would not work with python 3.6.3 or why there would be a hash error

and said "Deprecated since version 3.6: pyvenv was the recommended tool for creating virtual environments for Python 3.3 and 3.4, and is deprecated in Python 3.6." ; I understand that this is no longer valid with 3.6

I'm going to test venv...


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Installing PIP and setting up virtualenv steveholland68 1 313 Aug-08-2019, 05:52 PM
Last Post: snippsat
  python -m venv VS virtualenv kazi380 4 417 Jul-17-2019, 08:51 PM
Last Post: Larz60+
  Virtualenv and an infinitely spooling interpreter? eblade 3 396 Jul-11-2019, 06:58 PM
Last Post: eblade
  Fastest dict/map method when 'key' is already a hash? tasket 6 792 Apr-20-2019, 06:40 PM
Last Post: tasket
  Why is virtualenv not by default relocatable? bpostow 1 411 Mar-08-2019, 06:57 PM
Last Post: bpostow
  Auto activate conda env in Pycharm terminal ntuttle 0 829 Mar-08-2019, 03:56 PM
Last Post: ntuttle
  hash v2 and v3 help Normalitie 7 981 Mar-22-2018, 01:57 PM
Last Post: DeaD_EyE
  opencv without virtualenv tony1812 0 1,342 Jan-20-2018, 12:42 AM
Last Post: tony1812
  How do I activate my script when another program opens? jhave_21 3 1,209 Nov-23-2017, 08:29 AM
Last Post: heiner55
  Hash function in Python rachelrosemond 3 1,754 Sep-29-2017, 02:57 PM
Last Post: ichabod801

Forum Jump:

Users browsing this thread: 1 Guest(s)