2020-06-07
今天換了新買的電腦侯勉,把舊電腦的程序文件都轉(zhuǎn)移過來。使用新電腦上的pycharm安裝第三方庫Py2neo時亏钩,出現(xiàn)錯誤None-Zero exit code(1)炸庞,Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\Administrator\PycharmProjects\untitled\venv\Scripts\python.exe'.
最后通過換源解決了呕乎,這個py2neo最后用清華的源裝成功了。
參考以下帖子解決了問題:
參考貼1:pycharm 安裝模塊 use the correct version of 'pip' installed for your Python interpreter? https://www.cnblogs.com/emanlee/p/12357830.html
參考貼2:python Pycharm 更換pip源為國內(nèi)站點惩猫,加速訪問https://blog.csdn.net/kucoll/article/details/79155128
具體操作如下:
在pycharm中使用file -> setting ->project interpreter 的方式安裝package時
出現(xiàn)錯誤None-Zero exit code(1)
此時在Manage Repositories換源一般即可解決
參照帖子2:https://blog.csdn.net/kucoll/article/details/79155128添加豆瓣/阿里/清華的源
http://pypi.douban.com/simple/
http://mirrors.aliyun.com/pypi/simple/
https://pypi.tuna.tsinghua.edu.cn/simple/
修改后再安裝包就有三個源的包可供選擇芝硬,總有一個能夠裝上。這個py2neo就是使用清華的源裝上的轧房。