带有Python 3.6的Anaconda环境无法正常工作

时间:2019-09-22 03:20:34

标签: python anaconda conda

当我尝试从终端在此环境中使用python时,我的anaconda环境出现以下错误:

(py36torch) pc@pc:~$ python

Failed to import the site module
Traceback (most recent call last):
  File "/home/pc/anaconda3/envs/py36torch/lib/python3.6/site.py", line 703, in <module>
    main()
  File "/home/pc/anaconda3/envs/py36torch/lib/python3.6/site.py", line 670, in main
    virtual_install_main_packages()
  File "/home/pc/anaconda3/envs/py36torch/lib/python3.6/site.py", line 553, in virtual_install_main_packages
    f = open(os.path.join(os.path.dirname(__file__), 'orig-prefix.txt'))
FileNotFoundError: [Errno 2] No such file or directory: '/home/pc/anaconda3/envs/py36torch/lib/python3.6/orig-prefix.txt'

我检查了python-3.7的环境,它工作正常。有人遇到过这样的问题吗?我不确定如何解决此问题。任何帮助将不胜感激。谢谢。

0 个答案:

没有答案