So, I'm currently trying to install this package:
pip install git+https://github.com/Rapptz/discord.py#async
Github here: https://github.com/Rapptz/discord.py
but I get this error:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-khtOce/aiohttp/setup.py", line 61, in <module>
raise RuntimeError("aiohttp requires Python 3.4.1+")
RuntimeError: aiohttp requires Python 3.4.1+
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-khtOce/aiohttp/
So instead I have tried using pip3 to install the same package, but I'm currently getting a version conflict which I do not know how to solve.
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 9, in <module>
load_entry_point('pip==8.1.1', 'console_scripts', 'pip3')()
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14- py2.7.egg/pkg_resources.py", line 305, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py", line 2243, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'pip3') not found
I remember doing this yesterday, and I may have toyed around installing and reinstalling pip, but before, when I tried to install the same package when pip3 was working, I still remember getting the same error, so idk if solving the version conflict will do much.
I think you have a setuptools conflict here which will probably be resolved by updating setuptools.
Try:
pip install setuptools --upgrade
You can remove the previous setuptools installation in case it gives you a problem.
Related
C:\Users\gaucho-ucsb>pip install tradingWithPython
Collecting tradingWithPython
Using cached tradingWithPython-3.1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\gaucho~1\appdata\local\temp\pip-build-gshhyv\tradingWithPython\setup.py", line 3, in <module>
import tradingWithPython as twp
File "tradingWithPython\__init__.py", line 6, in <module>
from .lib import extra
File "tradingWithPython\lib\extra.py", line 20
print('\r', self, end='')
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
c:\users\gaucho~1\appdata\local\temp\pip-build-gshhyv\tradingWithPython\
I'm trying to install the package tradingWithPython into anaconda but I keep getting this error which I can't figure out. Any help would be great thanks.
I just spoke with the author of the library and it seems that tradingwithPython only installs with Python3. It is not backwards compatible anymore.
I just tried this (because I had the same issue) and it seems to work now.
I was trying to install hyperopt, but I got the following error:
Collecting hyperopt
Using cached hyperopt-0.0.2.tar.gz
Complete output from command python setup.py egg_info:
DEBUG:root:distribute_setup.py not found, defaulting to system setuptools
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-gmhldfe7/hyperopt/setup.py", line 119, in <module>
if package_data is None: package_data = find_package_data(packages)
File "/tmp/pip-build-gmhldfe7/hyperopt/setup.py", line 102, in find_package_data
for subdir in find_subdirectories(package):
File "/tmp/pip-build-gmhldfe7/hyperopt/setup.py", line 73, in find_subdirectories
subdirectories = os.walk(package_to_path(package)).next()[1]
AttributeError: 'generator' object has no attribute 'next'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-gmhldfe7/hyperopt/
And I got the same error when intalling hyperas. But I can install ggplot successfully by using pip command. I am using Ubuntu 14.04 and Python 3.5.
Thanks.
This is a bug in hyperopt. generator.next was renamed to generator.__next__ which can be invoked with next(generator) in Python3.
Here is the PEP detailing the change.
Looks like it was fixed in master but never released. You can install from git (which means github as well) by doing the following:
pip install git+https://github.com/hyperopt/hyperopt.git
I'm trying to install fuel and blocks with
pip install git+git://github.com/mila-udem/blocks.git#v0.0.1
pip install git+git://github.com/mila-udem/fuel.git#v0.0.1
(I was using the root account)
Then I encountered the problem
pip install git+git://github.com/mila-udem/fuel.git#v0.0.1
Downloading/unpacking git+git://github.com/mila-udem/fuel.git#v0.0.1
Cloning git://github.com/mila-udem/fuel.git to /tmp/pip-PnqUs3-build
Running setup.py (path:/tmp/pip-PnqUs3-build/setup.py) egg_info for package from git+git://github.com/mila-udem/fuel.git
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "build/bdist.linux-x86_64/egg/setuptools/__init__.py", line 11, in <module>
File "build/bdist.linux-x86_64/egg/setuptools/extern/__init__.py", line 1, in <module>
ImportError: No module named extern
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 3, in <module>
File "build/bdist.linux-x86_64/egg/setuptools/__init__.py", line 11, in <module>
File "build/bdist.linux-x86_64/egg/setuptools/extern/__init__.py", line 1, in <module>
ImportError: No module named extern
----------------------------------------
Cleaning up...
I have tried to reinstall/update setuptools and still can't get it work. Thanks.
download: https://pypi.python.org/pypi/extern/0.1.0
install: tar zxf extern-0.1.0.tar.gz && python setup.py install
I had the same issue on CentOS7 and got it resolved by doing:
pip install -U extern
You can cross check in your active python version, if you can import the module extern. If that works, then rebuild your easy_install from the downloaded ez_setup.py. e.g. /opt/bin/python ez_setup.py
This will include the extern module into the easy_install routine and the error doesn't show up anymore.
Running then /opt/bin/easy_install <your.egg> should do the job. Note: if you have more than one python version, use fully qualified names or softlinks you created in /usr/bin/
I am getting errors when trying to install python-daemon 2.0.5 with pip & python 2.6. I know there are other questions that refer to python-daemon 2.0.3 having this problem. But those answers indicate it should be fixed now.
I've tried installing older versions as well without luck. Although if I start over with a fresh virtualenv I am able to install 1.5.6 . However in this virtualenv I get the same error with 2.0.5 and 1.5.6
(py26)[brianb#api proj]$ pip install python-daemon
Downloading/unpacking python-daemon
Downloading python-daemon-2.0.5.tar.gz (71Kb): 71Kb downloaded
Running setup.py egg_info for package python-daemon
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/brianb/py26/build/python-daemon/setup.py", line 26, in <module>
import version
File "version.py", line 438
for item in versions}
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/brianb/py26/build/python-daemon/setup.py", line 26, in <module>
import version
File "version.py", line 438
for item in versions}
^
SyntaxError: invalid syntax
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/brianb/.pip/pip.log
This is strange! I tried to upgrade virtualenv too, but this did not work out.
To get it running, I had to upgrade to Python 2.7.
I'm having trouble running pip in Mountain Lion. I was under the impression that it should come preinstalled with Python (which is working), but trying to run any pip command just presents me with the following:
-bash: pip: command not found
I've tried
sudo easy_install pip
but get the following error:
Traceback (most recent call last):
File "/usr/bin/easy_install-2.7", line 10, in
load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')()
File "build/bdist.macosx-10.6-x86_64/egg/pkg_resources.py", line 347, in load_entry_point
File "build/bdist.macosx-10.6-x86_64/egg/pkg_resources.py", line 2516, in load_entry_point
ImportError: Entry point ('console_scripts', 'easy_install') not found
I've also tried using get-pip.py, as suggested at http://www.pip-installer.org/en/latest/installing.html, but this gives me a whole slew of errors.
Installing from source seems to work, but pip is still not found
I have a feeling there might be something wrong with my path:
~/.bin/:/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Any help would be greatly appreciated.
Thank you