请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

2回答

bobby 2017-04-12 09:11:55

你使用的python版本是多少?

0 回复 有任何疑惑可以回复我~
  • 老师,我用python2.7 还有python3.6都有这个问题,C:\Users\娜娜> virtualenv testvir
    Using base prefix 'c:\\users\\娜娜\\appdata\\local\\programs\\python\\python36'
    New python executable in C:\Users\娜娜\testvir\Scripts\python.exe
    Failed to import the site module
    Traceback (most recent call last):
      File "C:\Users\娜娜\testvir\lib\site.py", line 703, in <module>
        main()
      File "C:\Users\娜娜\testvir\lib\site.py", line 670, in main
        virtual_install_main_packages()
      File "C:\Users\娜娜\testvir\lib\site.py", line 554, in virtual_install_main_packages
        sys.real_prefix = f.read().strip()
    UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 13: illegal multibyte sequence
    ERROR: The executable C:\Users\娜娜\testvir\Scripts\python.exe is not functioning
    ERROR: It thinks sys.prefix is 'c:\\users\\娜娜' (should be 'c:\\users\\娜娜\\testvir')
    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.
    回复 有任何疑惑可以回复我~ 2017-06-19 07:52:30
  • 你试试不在中文路径下运行和安装试试
    回复 有任何疑惑可以回复我~ 2017-06-20 09:09:00
提问者 戏外 2017-04-12 17:20:16

用的3.6。。。。昨天换成2.7。没再出现这个问题

1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信