easy-install

Given the name of a Python package, what is the name of the module to import?

Given the name of a Python package, what is the name of the module to import? Question: Does somebody know the logic behind Python modules names vs the name of the actual package used in easy_install? A few (amongst others) example that seem a bit unlogical to me: We do easy_install mysql-python, but the import …

Total answers: 2

How to install packages offline?

How to install packages offline? Question: What’s the best way to download a python package and its dependencies from pypi for offline installation on another machine? Is there any easy way to do this with pip or easy_install? I’m trying to install the requests library on a FreeBSD box that is not connected to the …

Total answers: 13

Adding a module (Specifically pymorph) to Spyder (Python IDE)

Adding a module (Specifically pymorph) to Spyder (Python IDE) Question: I have managed to get spyder installed and functioning on my mac but I want to add in a few modules that it doesn’t include by default (mahotas and pymorph). I installed both via easy_install in the terminal and both seemed to install without any …

Total answers: 13

Installing pip using python interpreter

Installing pip using python interpreter Question: I am reasonably new to the inner workings of Python. I have been trying to solve the error seen here, Scrapy on Windows XP ImportError: No module named w3lib.html I installed easy_install so I could re-install Scrapy but I could not get it to do anything. I can import …

Total answers: 2

What's the difference between dist-packages and site-packages?

What's the difference between dist-packages and site-packages? Question: I’m a bit miffed by the python package installation process. Specifically, what’s the difference between packages installed in the dist-packages directory and the site-packages directory? Asked By: maxm || Source Answers: dist-packages is a Debian-specific convention that is also present in its derivatives, like Ubuntu. Modules are …

Total answers: 3

How to install virtualenv without using sudo?

How to install virtualenv without using sudo? Question: I have easy_install and pip. I had many errors on my Linux Mint 12, I just re-installed it and I want to install everything from scratch again. This is one of the errors that I had. I received an interesting answer there: Stop using su and sudo …

Total answers: 12

ImportError: No module named PIL

ImportError: No module named PIL Question: I use this command in the shell to install PIL: easy_install PIL then I run python and type this: import PIL. But I get this error: Traceback (most recent call last): File “<console>”, line 1, in <module> ImportError: No module named PIL I’ve never had such problem, what do …

Total answers: 31

How can I install various Python libraries in Jython?

How can I install various Python libraries in Jython? Question: I know that I can install Jython with Java and that I can use Jython where I use Python. The Jython shell is working fine. In Jython, how can I install libraries like lxml, Scrappy and BeautifulSoup that I’d normally install via pip or easy_install …

Total answers: 4

how to run easy_install using a particular python version

how to run easy_install using a particular python version Question: I have 3 python versions, I want to easy_install Orange using the second version. How can I do this? Unnecessary info: 2.1 in /usr/bin/python 2.6 in /Library/Frameworks/Python.framework/Versions/2.6/bin/python 3.1 in /Library/Frameworks/Python.framework/Versions/3.1/bin/python Answer: Ok found it here (http://peak.telecommunity.com/DevCenter/EasyInstall#multiple-python-versions), “Also, if you’re working with Python version 2.4 or …

Total answers: 4

How do I point easy_install to vcvarsall.bat?

How do I point easy_install to vcvarsall.bat? Question: I already have MSVC++ 2010 Express installed, and my vcvarsall.bat file is at C:Program FilesMicrosoft Visual Studio 10.0VC, which is in my system PATH. When I run easy_install, it can’t find vcvarsall.bat. Is there something I need to set in my distutils.cfg file to point it to …

Total answers: 2