T
T
Temirkhan202020-05-18 17:09:05
Python
Temirkhan20, 2020-05-18 17:09:05

How to set the path for loading a module for python via terminal in mac os?

I write the following line
sudo easy_install colorama

, it gives me:

Searching for colorama
Best match: colorama 0.4.3
colorama 0.4.3 is already the active version in easy-install.pth

Using /Library/Python/2.7/site-packages
Processing dependencies for colorama
Finished processing dependencies for colorama


I run the code using colorama, it gives me:
from colorama import init
ModuleNotFoundError: No module named 'colorama'


I open Library/Python. I see that it is empty. Where did the module download then?
How can I download the module to the code folder?
I tried to write cd ~Desktop/python_and then only sudo easy_install colorama, but it still downloads to
Library/Python/2.7/, but there is nothing along this path.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question