![]() If your Anaconda environment is activated correctly, python3 and python will both resolve to the Python 3 version bundled with Anaconda (same with pip and pip3), so using versioned Python commands should never be necessary unless something is wrong with your install/config. Most of this was mentioned before you specified you were using Anaconda Python. ![]() Remember for this project to prefer python3 to python and pip3 to pip ipython vs. Naturally, this won’t even run, leaving you permanently unable to install other packages into your OS Python, since pip itself is broken (perhaps not so bad a thing, since this should never be done). Furthermore, it seems a Python 3-only version of pip was mistakenly installed into your OS Python somehow (perhaps with python -m pip install -upgrade pip), perhaps because the ancient version of pip bundled with your macOS version didn’t recognize the Python-Requires metadata (which would answer 's question as to how this is possible, though I’m not certain of this). In the first post, your Anaconda env ( base) is not properly activated for some reason (otherwise the Anaconda-installed pip should supercede the OS one), and the pip called is the one installed in your macOS system Python (2.7), which should never be used. I cannot use ‘pip’ to install library like the following picture. Some other observations from the discussion: ![]() import sysconfig print(sysconfig.get_paths()).import sys print(sys.executable) print(sys.version_info). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |