Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install -r ~/digits/requirements.txt failed #1461

Closed
garygh159357 opened this issue Feb 17, 2017 · 7 comments
Closed

pip install -r ~/digits/requirements.txt failed #1461

garygh159357 opened this issue Feb 17, 2017 · 7 comments

Comments

@garygh159357
Copy link

I use ubuntu 16.04 ;

xiang@xiang-X550JD:~/digits$ sudo pip install -r ~/digits/requirements.txt
The directory '/home/xiang/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/xiang/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: Pillow<=3.1.2,>=2.3.0 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 1))
Requirement already satisfied: numpy<=1.11.0,>=1.8.1 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 2))
Requirement already satisfied: scipy<=0.17.0,>=0.13.3 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 3))
Requirement already satisfied: protobuf<=2.6.1,>=2.5.0 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 4))
Requirement already satisfied: six<=1.10.0,>=1.5.2 in /usr/local/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 5))
Collecting requests<=2.9.1,>=2.2.1 (from -r /home/xiang/digits/requirements.txt (line 6))
Downloading requests-2.9.1-py2.py3-none-any.whl (501kB)
100% |████████████████████████████████| 501kB 2.3MB/s
Requirement already satisfied: gevent<=1.1.0,>=1.0 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 7))
Collecting gevent-websocket==0.9.3 (from -r /home/xiang/digits/requirements.txt (line 8))
Downloading gevent_websocket-0.9.3-py27-none-any.whl
Requirement already satisfied: Flask==0.10.1 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 9))
Requirement already satisfied: Flask-WTF<=0.12,>=0.11 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 10))
Requirement already satisfied: wtforms<=2.1,>=2.0 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 11))
Collecting Flask-SocketIO==2.6 (from -r /home/xiang/digits/requirements.txt (line 12))
Downloading Flask-SocketIO-2.6.tar.gz
Collecting setuptools<=20.7.0,>=3.3 (from -r /home/xiang/digits/requirements.txt (line 13))
Downloading setuptools-20.7.0-py2.py3-none-any.whl (508kB)
100% |████████████████████████████████| 512kB 2.1MB/s
Collecting lmdb==0.87 (from -r /home/xiang/digits/requirements.txt (line 14))
Downloading lmdb-0.87.tar.gz (143kB)
100% |████████████████████████████████| 153kB 4.1MB/s
Requirement already satisfied: h5py<=2.6.0,>=2.2.1 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 15))
Collecting pydot<=1.0.29,>=1.0.28 (from -r /home/xiang/digits/requirements.txt (line 16))
Downloading pydot-1.0.29.tar.gz
Collecting psutil<=3.4.2,>=1.2.1 (from -r /home/xiang/digits/requirements.txt (line 17))
Downloading psutil-3.4.2.tar.gz (274kB)
100% |████████████████████████████████| 276kB 3.2MB/s
Requirement already satisfied: matplotlib<=1.5.1,>=1.3.1 in /usr/lib/python2.7/dist-packages (from -r /home/xiang/digits/requirements.txt (line 18))
Collecting scikit-fmm>=0.0.9 (from -r /home/xiang/digits/requirements.txt (line 19))
Downloading scikit-fmm-0.0.9.tar.gz (414kB)
100% |████████████████████████████████| 419kB 2.1MB/s
Requirement already satisfied: Werkzeug>=0.7 in /usr/lib/python2.7/dist-packages (from Flask==0.10.1->-r /home/xiang/digits/requirements.txt (line 9))
Requirement already satisfied: Jinja2>=2.4 in /usr/lib/python2.7/dist-packages (from Flask==0.10.1->-r /home/xiang/digits/requirements.txt (line 9))
Requirement already satisfied: itsdangerous>=0.21 in /usr/lib/python2.7/dist-packages (from Flask==0.10.1->-r /home/xiang/digits/requirements.txt (line 9))
Collecting python-socketio>=1.4 (from Flask-SocketIO==2.6->-r /home/xiang/digits/requirements.txt (line 12))
Downloading python-socketio-1.7.1.tar.gz
Collecting python-engineio>=0.9.2 (from Flask-SocketIO==2.6->-r /home/xiang/digits/requirements.txt (line 12))
Downloading python-engineio-1.2.2.tar.gz
Collecting pyparsing==1.5.7 (from pydot<=1.0.29,>=1.0.28->-r /home/xiang/digits/requirements.txt (line 16))
Downloading pyparsing-1.5.7.zip (965kB)
100% |████████████████████████████████| 972kB 1.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/setuptools/init.py", line 12, in
import setuptools.version
File "/usr/local/lib/python2.7/dist-packages/setuptools/version.py", line 1, in
import pkg_resources
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 72, in
import packaging.requirements
File "/usr/local/lib/python2.7/dist-packages/packaging/requirements.py", line 59, in
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: call() takes exactly 2 arguments (1 given)

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-x_wnAu/pyparsing/

How to fix this problem?

@garygh159357
Copy link
Author

this is my nvidia driver
i not sure whether i install current

2017-02-17 17-34-50

@kmuchmore
Copy link

I'm having the same issue. Not quite sure what the fix is yet.

@vbilaniuk
Copy link

Same problem. Very early in the process (first python pip install command, I think), it errors out, claiming you have to install setuptools. So if you then sudo pip install setup tools, everything works after that except for when you get to the final steps, where both final steps will fail on the pyparsing version. The pyparsing version that gets installed with setup tools is newer than what the requirements state. As a test, I tried just deleting that line out of the text file, but it didn't work. As a non-python person, that's as far as I've been able to get. I'm using an AWS instance, Ubuntu 16.04.2, and pretty much nothing installed except this stuff.

@sebastianlutter
Copy link

Had the same problem.

Found a workaround by reading this:
https://stackoverflow.com/questions/15951748/pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will

You need to modify the DIGITS/requirements.txt

Replace line:

pydot>=1.0.28,<=1.0.29

with

pydot>=1.0.28,<1.0.29

This installs pydot 1.0.28 instead of 1.0.29 which works fine with pyparsing 1.5.7 and solves the problem for me

@gustavz
Copy link

gustavz commented Jan 4, 2018

Same Problem. Gets Stuck at pydot.
But your workaround does not work for me @sebastianlutter

@adfayed
Copy link

adfayed commented Jun 5, 2019

Why is this closed? What was the solution @garygh159357

@wander1985
Copy link

Delete the line networkx>=1.8.1 in $CAFFE_ROOT/python/requirement.txt.
Then sudo pip install -r $CAFFE_ROOT/python/requirements.txt.
Then pip install networkx, without the 'sudo'.
It seems to work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants