문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top