6

I am new to setuptools on python.

I added a package 'numpy' and 'tensorflow' to install_requires list and running python setup.py install. It does not install due to SSL issue. We use self signed SSL for https based urls.

In case of pip for individual packages I can use --cert option. As I know setuptools use pip indirectly. If so, is there anyway to force it to use --cert option when setup.py is ran?

2
  • This link might help : stackoverflow.com/questions/677577/… Commented Jan 30, 2018 at 9:21
  • I just figured out that in case of 'tensorflow' it is actually different case related to wheel and egg packages. Commented Jan 30, 2018 at 12:06

1 Answer 1

0

It turns out that we have actually two problems here.

The problem about tensorflow is related some difference between egg and wheel packages.

To solve the problem about numpy and other packages it is enough to add the following line into ~/.pip/pip.conf file:

[global]    
cert=/path/to/cert.crt

If necessarry you may add any other option values (including proxy) with same format.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.