I am trying to download libraries for python 3. Running just pip install pycrypto
or any other library not already installed gives me a huge error
I posted about in another Q: Using pip to install pycrypto library on mac
Using sudo says the library is installed successfully, yet I still get the ModuleNotFoundError
when running my program. (I am using MacOS High Sierra)
$ sudo pip install pycrypto
Password:
The directory '/Users/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pycrypto
Downloading https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz (446kB)
100% |████████████████████████████████| 450kB 2.3MB/s
Installing collected packages: pycrypto
Running setup.py install for pycrypto ... done
Successfully installed pycrypto-2.6.1
You are using pip version 9.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ python ./assignment1.py
Traceback (most recent call last):
File "./assignment1.py", line 3, in <module>
import pycrypto
ModuleNotFoundError: No module named 'pycrypto'