PIP 7.1.2 - How to install dependencies from local folder?

88 views
Skip to first unread message

subhara...@gmail.com

unread,
Sep 15, 2018, 3:23:16 PM9/15/18
to virtualenv
Cross-posting from stackoverflow

I am trying to install dependencies via pip from a local folder. My requirements.txtlooks like below

--no-index

retrying
==1.3.3
six
==1.11.0

The steps I followed

support@vrni-platform:~$ mkdir app_depen
support@vrni
-platform:~$ sudo pip install --download=/home/support/app_depen retrying==1.3.3

The content of /home/support/app_depen

support@vrni-platform:~$ ls -lah /home/support/app_depen/
total
32K
drwxrwx
--- 2 support support 4.0K Sep 15 15:04 .
drwx
------ 5 support support 4.0K Sep 15 15:09 ..
-rw-r----- 1 root    root     11K Sep 15 15:04 retrying-1.3.3.tar.gz
-rw-r----- 1 root    root     11K Sep 15 15:04 six-1.11.0-py2.py3-none-any.whl


Then on trying to do the install via pip as shown below
support@vrni-platform:~$ sudo pip install -U --force-reinstall --allow-unverified --find-links=/home/support/app_depen/ -r requirements.txt

I am getting the below error
Collecting retrying==1.3.3 (from -r requirements.txt (line 2))
 
Could not find a version that satisfies the requirement retrying==1.3.3 (from -r requirements.txt (line 2)) (from versions: )
No matching distribution found for retrying==1.3.3 (from -r requirements.txt (line 2))


I tried changing the permission like below. But still getting the same error

support@vrni-platform:~$ ls -lah /home/support/app_depen/
total
32K
drwxrwx
--- 2 support support 4.0K Sep 15 15:04 .
drwx
------ 5 support support 4.0K Sep 15 15:09 ..
-rw-r-xr-x 1 root    root     11K Sep 15 15:04 retrying-1.3.3.tar.gz
-rw-r----- 1 root    root     11K Sep 15 15:04 six-1.11.0-py2.py3-none-any.whl


Can someone let me know what is going wrong?

  • Python - 2.7.6
  • PIP - 7.1.2

Debraj Manna

unread,
Sep 16, 2018, 12:25:12 AM9/16/18
to virtualenv
Anyone any thoughts on this? I can't upgrade PIP to the latest now.

--
You received this message because you are subscribed to the Google Groups "virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-virtual...@googlegroups.com.
To post to this group, send email to python-v...@googlegroups.com.
Visit this group at https://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/d/optout.

subhara...@gmail.com

unread,
Sep 17, 2018, 5:41:07 AM9/17/18
to virtualenv
Reply all
Reply to author
Forward
0 new messages