[PYTHON] nwdiag Problems with offline installation

nwdiag Problems with offline installation

I stumbled when I set -> nwdiag in the company environment, so make a note.

Work environment

What i did

If you are in an online environment at home, the installation will be completed with one line of the pip install nwdiag command, but this is not the case in a company environment with restrictions.

If you type the above command, the connection with the proxy server will time out, so first try to break through the proxy.

##Omission## Connection to "Proxy server" timed out.

For the time being, check the IP and port of the proxy server from the automatic configuration script file (.pac), and issue the pip command again with the proxy server specified.

However, the situation does not change.

This can't be helped anymore, so download all the dependencies and install them manually with the following command.

#Install command
python -m pip install hogehoge

-> Python package download source

Things are going smoothly unexpectedly, but ... The appearance of Pillow makes the work difficult.

Errors and solutions

The following error occurred when installing "Pillow-7.1.2-cp38-cp38-win_amd64.whl" required for installing blockdiag.

##Omission##
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.

I tried downgrading python and pip, installing zlib, etc., but the result did not change.

After trying for a few days, I tried to downgrade Pillow in -> github issues, and Pillow was installed. Was successful!

I hope it helps those who are having trouble with the same content. (I don't think there are many people ...)

that's all

Recommended Posts

nwdiag Problems with offline installation
PIL installation with pip
Problems with installing Scrapy
Problems with webpay cooperation
Offline installation procedure for openpyxl
Addressing N + 1 problems with Dataloaders
How to write offline real-time Solving E05 problems with Python
How to write offline real time Solve F01 problems with Python
Command installation destination with pip, easy_install
Solve AtCoder Problems Recommendation with python (20200517-0523)