python - ImportError: No module named 'Crypto' on a Mac -


here situation:

mymachine:systemtest user$ pip3 install --upgrade pycrypto requirement up-to-date: pycrypto in /usr/local/lib/python3.6/site-packages mymachine:systemtest user$ echo $pythonpath /users/user/private/space/server:/users/user/private/space/client:/usr/local/lib/python3.6/site-packages mymachine:systemtest user$ python3 -c "import crypto" traceback (most recent call last):   file: "<string>", line 1, in <module> modulenotfounderror: no module named 'crypto' 

is special mac thing? how make sure python3 uses crypto module?

with -m switch, should run python3 -m crypto. no need import. or run python3 -c "import crypto"


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -