I found what needs to be done; the answer was at 
Reproducing here in case anyone else has the same problem. A distutils 
configuration file needs to be created, similar to the pip.conf file, as 

index_url = http://debpkg:8080/pypi

The file can either be user-level (~/.pydistutils.cfg) or system-level 
(/usr/lib/python{ver}/distutils.cfg), as per 

Very happy now that all dependencies can be resolved.


On Monday, 12 March 2018 10:54:16 UTC, worrye...@gmail.com wrote:
> Hello,
> I work in a place with an offline network, so we've got a mirror of Pypi 
> which for the most part works very well. We all use a pip.conf file as 
> follows:
>     [global]
>     index = http://debpkg:8080/pypi
>     index-url = http://debpkg:8080/pypi
>     trusted-host = debpkg
>     disable-pip-version-check = True
> We can successfully install most packages, and pip keeps going back to our 
> server debpkg for dependencies. For example, Flask installs fine, and it 
> has the following dependencies defined:
>     install_requires=[
>         'Werkzeug>=0.7',
>         'Jinja2>=2.4',
>         'itsdangerous>=0.21',
>         'click>=2.0',
>     ]
> However, there are some other packages that feature test dependencies, and 
> these unfortunately still look for the dependencies on pypi.python.org. 
> E.g. flask-mongoengine has the following in setup.con:
>     test_requirements = ['coverage', 'nose', 'rednose']
>     ...
>     tests_require=test_requirements,
>     setup_requires=test_requirements,
> This results on the following error when we attempt "pip install 
> flask-mongoengine":
>     Download error on https://pypi.python.org/simple/rednose/: [Errno -2] 
> Name or service not known -- Some packages may not be found!
>     Couldn't find index page for 'rednose' (maybe misspelled?)
>     Download error on https://pypi.python.org/simple/: [Errno -2] Name or 
> service not known -- Some packages may not be found!
>     No local packages or download links found for rednose
> Is there anything I need to add to pip.conf to get this to work properly? 
> Or is this a limitation of pip that would need an enhancement?
> Cheers.

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-virtualenv+unsubscr...@googlegroups.com.
To post to this group, send email to python-virtualenv@googlegroups.com.
Visit this group at https://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to