Question

I am using python 2.7.5 on windows and I have followed these directions for the windows python 2 section to the letter.

I found 2 other questions on SO with the same problem but they were both on linux and the top answers were not helpful

the only thing I can see that might have gone wrong is when I ran

C:\env> scripts\easy_install pyramid

I got a warning that said :

"WARNING: The C extension could not be complied, speedups are not enabled. Plain-Python installation succeeded."

Could that be the problem?

Was it helpful?

Solution

I found the answer to my problem. My virtual environment was correctly set up, I just needed to run my code through the version of python found in the scripts folder of my virtual environment.

The python file you are trying to run can be found anywhere on your local machine as long as it uses python from that environment, for example

C:\anypath\onlocalmachine> C:\env\Scripts\python.exe helloworld.py

I was making the mistake of putting my python file in the virtual environment and attempting to run the following WRONG code

C:\env> helloworld.py

I thought that I was supposed to be working entirely within the virtual environment Thanks for the help in the comments rebelious

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top