It's hard to be offline. Master
First of all, I am installing and using cryptography properly on a PC that can be used on the Internet.
(I think I will use the Python 3.6 version cryptography-3.4.6.tar.gz
file)
Download the relevant package successfully and save it to an offline network
All other dependent packages have been successfully installed.
Lastly, I installed cryptography-3.4.6.tar.gz
but it is an error.
(The offline network is Python 3.8, but when downloading the above package, there is only 3.7 wheel files.)
Do I need to install the exact file?
Should I make Python 3.6d again?
This is the error content below.
error: Setup script exited with error : can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt is availble for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation:
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and enure it is on the PATH during installing. Alternatively, rustup (available at https://rustup.rs) is the recommended to download and update the Rust compiler toolchain.
This package requires Rust >=1.41.0.
Thank you for the guide.
It's half a half success.
It was resolved by installing the anaconda first.
(futility - being installed automatically)
.Why is it difficult to install manually....
I'm leaving a self-answer just in case.
Thank you.
I guess it includes a trust code. On Windows operating systems, tar.It is quite painful to "compile" and install the gz source. (Linux makes source compilation much easier. Linux originally compiles and installs Linux packages and does a lot of that.)
If I may give you some advice, you have to match the online and offline environments that become the Internet. As long as the environment (os, Python version, Python bit count) is the same, the required dependency package is downloaded at once with the pip download command, so it is not too difficult to move and install only those files. However, you should not compile and install sources anywhere on the Internet, and make sure that pre-compiled binary packages such as whl are installed as much as possible.
And also importantly, when you go offline, it's simpler to configure your environment with vanilla Python than with anaconda environment, so it's better to just move the files and install them.
Good luck.
© 2024 OneMinuteCode. All rights reserved.