Install other Packages

Posted by m3tah on 2017-11-28 11:11


I install ActivePython but now i want to install others packages which are not include in active python (like mechanize for exemple). I install them by typing sudo apt-get install python-mechanize in my terminal but when i open python so it's active python now, i can't import them. My question is : how to import the installed packages which are not in active python ?



ActiveState Staff
Wed, 2017-11-29 11:03

If you use apt-get, you will modify a system resource; the python provided by the operating system. The need to use sudo tells you this is a system command, and is restricted to system administrators. ActivePython is not a system resource and should not be sharing resources with a system Python.

Python itself has tools for managing modules. Use one of those. We suggest pip (for Python 2) or pip3 (for Python 3).