问题
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