statement:
It is a work of personal study and does not assume any legal responsibility. Make progress together.
Question 1:
The production environment can only use rz upload and sz upload.
Because I am installing the algorithm environment on an offline server, it involves installing the algorithm installation package.
The first step is to go to pypi and search for the installation package you want.
Pypi:PyPI · The Python Package Index
The second step, select the version
There are two ways to download
One is .whl and the other is tar.gz
Note, I downloaded it here, but there is a problem.
tar.gz file, the downloaded suffix is only tar
Here comes the problem.
After .whl is uploaded using rz, the file will be damaged. The specific tips are as follows:
use
pip install xxxxxx.whl
Error:
Later, I used MD5 to check the integrity of the file, and there was a problem.
md5sum yourfile
Get a string of strings, compare them, and get the conclusion that the file is damaged.
Use the fast upload method
Remove the method of uploading with ascll code
rz -be
#上传安装包报错,不要以ascll码上传
Quick selection, if the selection time is too long, an error will be reported.
OK.
Question 2.
Different routing interfaces from the same port will cause conflicts
There is an interface that reports 404 for no reason,
Probably as follows:
@app.route("/ai/testone", methods=["POST"])
def index_post001():
pass
@app.route("/ai/testtwo", methods=["POST"])
def index_post002():
pass
Normally, there is no problem with the same port, such as yourip:5001/port.
This scene happened to me here.
You can use interface 1 or interface 2 independently,
But if the two start together, one of them will always die.
Analyzed for ten thousand years.
in conclusion:
There will be problems with the same server and the same port, routing, and pointing.
Revise:
@app.route("/aiV1/useforone", methods=["POST"])
def index_post001():
pass
@app.route("/aiV2/getfortwo", methods=["POST"])
def index_post002():
pass
ok