Conda - installing tensorflow from a .whl file behind a firewall
I had some success with this in my company (which also doesn't allow internet access by Anaconda package manager)
I found this site: https://www.lfd.uci.edu/~gohlke/pythonlibs/
where you can download wheel files for a number of python packages. You can then use PIP to install the wheel packages locally .
pip install some-package.whl
as detailed in this answer
Sergiy Mykhaylenko
Updated on June 28, 2022Comments
-
Sergiy Mykhaylenko almost 2 years
I have got an Anaconda3 with Python 3.6 (Spyder) environments, trying to install
tensorflow
, however, can't utilize the standard pip installation due to company firewall.Furthermore, I can't create an anaconda environment for the same reason. What I am trying to do is to install tensorflow directly from the
whl
file (which I have downloaded from the official website), using the following command:C:\Users\me>pip install --no-deps tensorflow-1.8.0-cps36-cp36m-win_amd64.whl
which leads to 'Requirement _ looks like a filename but the file does not exist' -> _ is not supported wheel on this platform.When I try to run via:
conda install --no-deps tensorflow-1.8.0-cps36-cp36m-win_amd64.whl
I get Solving environment:
failed, CondaHTTPError: ... etc.
- probably due to the same firewall reason.Now, is there any way to install the .whl without encountering the firewall restrictions?
Thank you vm guys.