easy-install

What is the official “preferred” way to install pip and virtualenv systemwide?

十年热恋 提交于 2019-11-26 04:59:59
问题 Is it this, which people seem to recommend most often: $ sudo apt-get install python-setuptools $ sudo easy_install pip $ sudo pip install virtualenv Or this, which I got from http://www.pip-installer.org/en/latest/installing.html: $ curl -O https://github.com/pypa/virtualenv/raw/master/virtualenv.py $ python virtualenv.py my_new_env $ . my_new_env/bin/activate (my_new_env)$ pip install ... Or something entirely different? 回答1: If you can install the latest Python (2.7.9 and up) Pip is now

pip ignores dependency_links in setup.py

女生的网名这么多〃 提交于 2019-11-26 04:40:05
问题 I have dependency_links in my setup.py: ... dependency_links = [\'http://github.com/robot-republic/python-s3/tarball/master.tar.gz#egg=python-s3\'], ... But it doesn\'t work. However install_requires works fine. Maybe there are another method to set up git repo as required for setup.py? 回答1: This answer should help. In a nutshell, you need to specify the version (or "dev") for the #egg=python-s3 so it looks like #egg=python-s3-1.0.0 . Updates based on @Cerin's comment: Pip 1.5.x has a flag to

The problem with installing PIL using virtualenv or buildout

房东的猫 提交于 2019-11-26 03:49:42
问题 When I install PIL using easy_install or buildout it installs in such way, that I must do \'import Image\', not \'from PIL import Image\'. However, if I do \"apt-get install python-imaging\" or use \"pip -E test_pil install PIL\", all work fine. Here are examples of how I trying to install PIL using virtualenv: # virtualenv --no-site-packages test_pil # test_pil/bin/easy_install PIL # test_pil/bin/python Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on

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

余生颓废 提交于 2019-11-26 03:06:35
问题 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 error messages. Running python from a terminal and using import mahotas and import pymorph works just fine without error messages. However, when I run the same lines from a script within spyder I get the following error: Traceback (most recent call

How can I install various Python libraries in Jython?

独自空忆成欢 提交于 2019-11-26 02:54:46
问题 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 回答1: Some Python modules, like lxml , have required components in C. These won't work in Jython. Most Python packages will work fine, and you can install them using the same tools as you use in CPython. This is described in Appendix A of Jython

How do I point easy_install to vcvarsall.bat?

南笙酒味 提交于 2019-11-26 02:51:14
问题 I already have MSVC++ 2010 Express installed, and my vcvarsall.bat file is at C:\\Program Files\\Microsoft Visual Studio 10.0\\VC , 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 my MSVC++ installation? G:\\>easy_install hg-git install_dir C:\\Python26\\Lib\\site-packages\\ Searching for hg-git Best match: hg-git 0.2.6 Processing hg_git-0.2.6-py2.6.egg hg-git 0.2.6 is already the

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

时光毁灭记忆、已成空白 提交于 2019-11-26 02:48:16
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? dist-packages is a Debian-specific convention that is also present in its derivatives, like Ubuntu. Modules are installed to dist-packages when they come from the Debian package manager into this location: /usr/lib/python2.7/dist-packages Since easy_install and pip are installed from the package manager, they also use dist-packages, but they put packages here: /usr/local/lib/python2.7/dist-packages From the

How to install lxml on Ubuntu

我与影子孤独终老i 提交于 2019-11-26 01:55:48
问题 I\'m having difficulty installing lxml with easy_install on Ubuntu 11. When I type $ easy_install lxml I get: Searching for lxml Reading http://pypi.python.org/simple/lxml/ Reading http://codespeak.net/lxml Best match: lxml 2.3 Downloading http://lxml.de/files/lxml-2.3.tgz Processing lxml-2.3.tgz Running lxml-2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7UdQOZ/lxml-2.3/egg-dist-tmp-GacQGy Building lxml version 2.3. Building without Cython. ERROR: /bin/sh: xslt-config: not found **

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

∥☆過路亽.° 提交于 2019-11-26 01:11:06
问题 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? 回答1: dist-packages is a Debian-specific convention that is also present in its derivatives, like Ubuntu. Modules are installed to dist-packages when they come from the Debian package manager into this location: /usr/lib/python2.7/dist-packages Since easy_install and pip are installed from the package

Why use pip over easy_install? [closed]

↘锁芯ラ 提交于 2019-11-25 23:59:23
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . A tweet reads: Don\'t use easy_install, unless you like stabbing yourself in the face. Use pip. Why use pip over easy_install? Doesn\'t the fault lie with PyPI and package authors mostly? If an author uploads crap source tarball (eg: missing files, no setup.py) to PyPI, then