How to use virtualenv in 32-bit Python on a 64-bit machine?

I have been connecting to this for several hours for several hours, and I have time.

The third error says to copy the DLL, while it already exists by default.

C:\Windows\system32>virtualenv django-josh New python executable in django-josh\Scripts\python.exe ERROR: The executable django-josh\Scripts\python.exe is not functioning ERROR: It thinks sys.prefix is u'c:\\windows\\syswow64\\django-josh' (should be u'c:\\windows\\system32\\django-josh') ERROR: virtualenv is not compatible with this system or executable Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem. 

I read this and I want to note that I had Python 3, but I installed Python 2.7 and uninstalled Python 3 after. I am wondering if there is any other Python 3 trace on my computer, although I cannot find anything.

Update: I was able to get it to work with this command (using the option), but I'm not sure if this is correct.

 C:\Windows\system32>virtualenv --distribute C:\Python27\envs\django New python executable in C:\Python27\envs\django\Scripts\python.exe Installing setuptools, pip...done. 

Thank you very much!

+6
source share
1 answer

--distribute uses Distribute, fork Setuptools, which is no longer supported. Since then, he has merged again with Setuptools. In general, I would recommend not using this option. You can use the -p option with the path to the executable to indicate which Python interpreter to use. Thus, you can be sure that you are not using Python 3. It looks like you are creating your environment under C: \ Python27, but I'm not sure that your virtualenv will know how to use 2.7, just using it at this location, etc.

0
source

Source: https://habr.com/ru/post/969446/


All Articles