easy-install

Error importing BeautifulSoup - Conflict with Python version

做~自己de王妃 提交于 2019-12-01 12:07:23
问题 I installed BeautifulSoup with the command: sudo easy_install BeautifulSoup4 I got the message: Searching for BeautifulSoup4 Best match: beautifulsoup4 4.1.3 Processing beautifulsoup4-4.1.3-py2.6.egg beautifulsoup4 4.1.3 is already the active version in easy-install.pth Using /Library/Python/2.6/site-packages/beautifulsoup4-4.1.3-py2.6.egg Processing dependencies for BeautifulSoup4 Finished processing dependencies for BeautifulSoup4 I'm trying to import the BeautifulSoup lib. >>> from

linux redhat 6 and installing easy_install

て烟熏妆下的殇ゞ 提交于 2019-12-01 10:12:48
问题 I'm completely new at this and needed a bit of help. I've got a hosted server running Linux Redhat 6 and using Python 2.7 (which has just been set as the default from Python 2.6) located at /usr/local/bin/python2.7 I'm trying to setup easy_install on the server, but I'm not sure if i'm doing it correctly, on the bash screen i'm running: sudo apt-get install python-setuptools But it keeps asking for a sudo password, which i'm assuming is my normal admin password that i've used to login via SSH

How to make easy_install execute custom commands in setup.py?

浪子不回头ぞ 提交于 2019-12-01 04:21:42
I want my setup.py to do some custom actions besides just installing the Python package (like installing an init.d script, creating directories and files, etc.) I know I can customize the distutils/setuptools classes to do my own actions. The problem I am having is that everything works when I cd to the package directory and do "python setup.py install", but my custom classes don't seem to be executed when I do "easy_install mypackage.tar.gz". Here's my setup.py file (create an empty myfoobar.py file in the same dir to test): import setuptools from setuptools.command import install as _install

Issue with easy_install-2.7

余生长醉 提交于 2019-12-01 03:26:30
After installing easy_install and trying to use it to then install a python package it fails. [root@server]# easy_install-2.7 pip Searching for pip Reading http://pypi.python.org/simple/pip/ Download error on http://pypi.python.org/simple/pip/: unknown url type: https -- Some packages may not be found! I seem to get a redirect curl -IL http://pypi.python.org/simple/pip/ HTTP/1.1 301 Moved Permanently Retry-After: 0 Location: https://pypi.python.org/simple/pip/ Content-Length: 0 Accept-Ranges: bytes Date: Tue, 12 Nov 2013 10:28:40 GMT Age: 0 Connection: close HTTP/1.1 200 OK Date: Tue, 12 Nov

easy_install : ImportError: Entry point ('console_scripts', 'easy_install') not found

≡放荡痞女 提交于 2019-12-01 02:07:15
I used easy_install to install pip, pip to install django, virtualenv, and virtualenvwrapper. I have just returned to it a few weeks later and django does not seem to work anymore, but more concerning is I can't start the process over again as easy_install is returning the following error: Traceback (most recent call last): File "/usr/bin/easy_install-2.7", line 10, in <module> load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')() File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 318, in load_entry_point File "/Library

easy_install : ImportError: Entry point ('console_scripts', 'easy_install') not found

允我心安 提交于 2019-11-30 21:30:40
问题 I used easy_install to install pip, pip to install django, virtualenv, and virtualenvwrapper. I have just returned to it a few weeks later and django does not seem to work anymore, but more concerning is I can't start the process over again as easy_install is returning the following error: Traceback (most recent call last): File "/usr/bin/easy_install-2.7", line 10, in <module> load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')() File "/Library/Python/2.7/site

Python - package installed with easy_install is not being detected (PIL 1.1.7)

回眸只為那壹抹淺笑 提交于 2019-11-30 20:11:16
I installed PIL with easy_install but for some reason when I run a file that uses it, I get: ImportError: No module named PIL Does anyone know why this could be? I think it's also worth mentioning that I installed web.py through easy_install and it's working fine. I have the same problem. To me, it looks like a bug in PIL easy_install process. The library is installed, but you have to leave out PIL from imports (aka import Image works), which is obviously wrong. To solve, don't use easy_install to perform the install. Download the tar package and python setup.py install it. This will work.

easy_install.exe Permission Denied on Windows 8

大憨熊 提交于 2019-11-30 19:16:15
Running command prompt as an administrator I try to run: easy_install -U setuptools It returns the following: Searching for setuptools Reading https://pypi.python.org/simple/setuptools/ Reading http://peak.telecommunity.com/snapshots/ Reading https://pypi.python.org/pypi/setuptools Best match: setuptools 0.8 Processing setuptools-0.8-py2.7.egg setuptools 0.8 is already the active version in easy-install.pth Installing easy_install-script.py script to C:\Python27\Scripts Installing easy_install.exe script to C:\Python27\Scripts error: C:\Python27\Scripts\easy_install.exe: Permission denied I've

Scrapy Installation Fails with error 'cannot open include: 'openssl/aes.h '

不羁的心 提交于 2019-11-30 17:55:47
I am trying to install Scrapy with easy_install -U Scrapy but it ends up in a strange error "Can not open include file " while trying to install it. Does any one know what is going on? Here is my complete traceback: C:\Users\Mubashar Kamran>easy_install -U Scrapy Searching for Scrapy Reading https://pypi.python.org/simple/Scrapy/ Best match: scrapy 0.24.4 Processing scrapy-0.24.4-py2.7.egg scrapy 0.24.4 is already the active version in easy-install.pth Installing scrapy-script.py script to C:\Python27\Scripts Installing scrapy.exe script to C:\Python27\Scripts Installing scrapy.exe.manifest

When I run the setuptools .egg “as if it were a shell script”, what's actually happening?

爱⌒轻易说出口 提交于 2019-11-30 17:53:32
问题 From reading this documentation, I've built a mental model of what the command sh setuptools-0.6c11-py2.7.egg actually does, but it's very incomplete and I'm still mystified by a few aspects. My mental model goes something like this: When this command is issued, the egg (which I'd considered as a sort of zip file that handles dependencies cleverly) somehow finds the right version of python on my system, and using that python, "installs itself" to an appropriate location. In practice this