I am trying to create a Virtual Environment using PyTools for Visual Studio 2013. I've manually installed Python before installing Visual Studio 2013 and PyTools, and it functions correctly.
When I try to create a virtual environment through PyTools I get the following error:
AssertionError: Filename c:\\Python27\\Lib\\os.py does not start with any of these prefixes: ['C:\\Python27']
C:\\Python27 and C:\\Python27\\Lib are in my PYTHONPATH.
The assert error was caused because maybe you don't have a PYTHONPATH environment variable setup.
The socket error was caused because there is no included the PythonXX\\DLLs folder.
The full PYTHONPATH environment variable should look follows:
PYTHONPATH=C:\\Python27;C:\\Python27\\Lib;C:\\Python27\\DLLs
Here is a full post of that topic StackOverflow link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.