Python and pip versions are different and potentially causing problem

≯℡__Kan透↙ 提交于 2021-02-05 09:28:56

问题


I have both 3.6 and 3.8 python versions installed in my drive and I am using Anaconda for virtual environment with Python 3.6. When I say in cmd prompt:

  >python -V
Python 3.6.10 :: Anaconda, Inc.

However when I look for pip versions it shows

  >pip3 -V
pip 20.1.1 from c:\python38\lib\site-packages\pip (python 3.8)

I'm thinking this the cause of the problem when I use pip install -e . while my virtual environment is active:

ERROR: Could not find a version that satisfies the requirement torch==1.3.1 (from spinup==0.2.0) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.3.1 (from spinup==0.2.0)

How can I solve this ?


回答1:


As @FlyingTeller suggests removing any seperate python version then Anaconda solve the confusion between pip and python. However didn't solve the actual problem. I will close this question and open another one, thanks.



来源:https://stackoverflow.com/questions/61891021/python-and-pip-versions-are-different-and-potentially-causing-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!