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/
Related
I am trying to install pypiwin32==219 in my virtual environment from a requirements.txt file.
requirements.txt
pypiwin32==219
I have setup a virtualenv denv in which I am working.
(denv) Nehas-MacBook-Pro:dash_pdf neha$ pip install -r requirements.txt
I got this traceback error:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/_y/g09fpxn13xq7z6ptmq3095dm0000gn/T/pip-install-7zp59n5n/pypiwin32/setup.py", line 121
print "Building pywin32", pywin32_version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building pywin32", pywin32_version)?
which really is a python version issue so I switched to the command:
(denv) Nehas-MacBook-Pro:dash_pdf neha$ pip2 install -r requirements.txt
upon which I get this traceback error:
Using cached https://files.pythonhosted.org/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/_y/g09fpxn13xq7z6ptmq3095dm0000gn/T/pip-install-KEpN56/pypiwin32/setup.py", line 83, in <module>
import _winreg
ImportError: No module named _winreg
I googled some and I found that _winreg required Windows. No way I can get pypiwin32==219 to work on MacOS? Or any other modules I can use with the same functionality?
i suggest, that winreg is only for Windows
If I create a clean virtualenv, upgrade my pip version to 9.0.1 (most recent), and try:
$ pip install asteval
Collecting asteval
Downloading asteval-0.9.10.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-nnWnaR/asteval/setup.py", line 3, in <module>
import asteval
File "asteval/__init__.py", line 20, in <module>
from .asteval import Interpreter
File "asteval/asteval.py", line 18, in <module>
import six
ImportError: No module named six
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nnWnaR/asteval/
Maybe I'm missing something, I thought pip should handle the dependencies? I thought it used to.
The bypass is to separately pip install six, then asteval will install. But I want to require asteval as an import requirement in my code, and I don't want to have to trace dependencies it might have and list those as requirements.
asteval is making a common mistake: importing itself into its setup.py. You should file a bug against the project, asking them to stop doing that.
I am trying to install some packages using pip on OSX 10.11.6 and it is always failing.
Whenever I try to install some package I am getting the error about missing extern. I have tried to fix the extern thing by ImportError: No module named extern but without success.
Traceback (most recent call last):
File "setup.py", line 6, in <module>
from setuptools import setup
File "build/bdist.macosx-10.11-intel/egg/setuptools/__init__.py", line 10, in <module>
File "build/bdist.macosx-10.11-intel/egg/setuptools/extern/__init__.py", line 1, in <module>
ImportError: No module named extern
I have tried deleting all my setuptools file and in /Library/Python/2.7/site-packages/ and reinstalling but it doesn't work still.
The issue of the problem was different version of distribute was troubling my installation.
I went to my python package directory
/Library/Python/2.7/site-packages
and fixed the problem by running the following command. I reverted my installation back to distribute_0.6.14 via
python distribute_setup.py
This fixed my setuptools and now I am able to install and run things normally.
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 have python3 installed on linux. In the python interpreter, I tried
import sqlite3
and got
ImportError: No module named '_sqlite3'
so i installed sqlite with
sudo apt-get install libsqlite-dev
and then recompiled python according to the instructions in the README file:
cd ~/Python-3.4.2;
./configure;
make;
make test;
and during test there was an error saying
[ 97/389] test_sqlite
test_sqlite skipped -- No module named '_sqlite3'
and then when I finished the install and tried to run the same python code, I still got the same ImportError. What am I doing wrong?
---EDIT---
I tried
pip install pysqlite
and got this error, which seems to be an issue between Python2.7 and Python3.4:
Downloading/unpacking pysqlite
Downloading pysqlite-2.6.3.tar.gz (76kB): 76kB downloaded
Running setup.py (path:/tmp/pip_build_plat/pysqlite/setup.py) egg_info for package pysqlite
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_plat/pysqlite/setup.py", line 85
print "Is sphinx installed? If not, try 'sudo easy_install sphinx'."
^
SyntaxError: Missing parentheses in call to 'print'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_plat/pysqlite/setup.py", line 85
print "Is sphinx installed? If not, try 'sudo easy_install sphinx'."
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_plat/pysqlite
Storing debug log for failure in /home/plat/.pip/pip.log
After install libsqlite-dev you should install pysqlite
pip install pysqlite