In recent days, I have realized crawling Baidu hot search movies with scratch, which can be successfully crawled on windows, but when I put the code on Ubuntu 18.04 virtual machine, I didn’t get the content, and the following error occurred:
I compared the following version information of their components, that is, this part of the information.
I found that the cryptography version of the virtual machine was obviously low, so I tried to upgrade to the lower level:
pip3 install --upgrade cryptography
Then run again and find that suddenly it’s OK!
- When running Python script, an error is reported: a true sslcontext object is not available
- SVN You need to upgrade the working copy first.
- How to Solve ModuleNotFoundError: No module named ‘pip._internal’
- Python.exe Error: No module named pip.__main__; ‘pip’ is a package and cannot be directly executed
- Pychar can’t install the third-party library, the solution of error code non zero exit code (1)
- [Solved] Python Error: ModuleNotFoundError : No Module named ‘pip._internal’
- Error 25028 when virtual machine is installed again
- Exception record-No module named ‘numpy.core._multiarray_umath
- [antd vue Update] Some Components Error: Error in data(): “TypeError” & Cannot read properties of undefined (reading ‘pageSize’)
- [Solved] Python pip install Error: OSError: [Errno 1] Operation not permitted