[英]Can not install mysqlclient in a OFFLINE CentOS7 server with ERROR message “not a supported wheel on this platform”
I am trying to install mysqlclient in a offline CentOS7 server, so that I can connect my Django site to a MariaDB我正在尝试在离线 CentOS7 服务器中安装 mysqlclient,以便可以将我的 Django 站点连接到 MariaDB
What I did was to download.wheel package "mysqlclient-2.0.3-cp37-cp37m-win_amd64.whl" from PyPI.我所做的是从 PyPI 下载.wheel package "mysqlclient-2.0.3-cp37-cp37m-win_amd64.whl"。 Then I run the code
然后我运行代码
pip install mysqlclient-2.0.3-cp37-cp37m-win_amd64.whl
But received the following message但收到以下消息
mysqlclient-2.0.3-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
[error message][1] [1]: https://i.stack.imgur.com/bhqUD.png [错误信息][1][1]:https://i.stack.imgur.com/bhqUD.png
I looked through all available answers and internet questions but did not able to find a similar problem.我查看了所有可用的答案和互联网问题,但没有找到类似的问题。 Could someone give me help?
有人可以帮我吗?
Thank you very much非常感谢
After following @Brain comment, I have solved the problem.在关注@Brain 评论后,我已经解决了这个问题。
I went to PyPI and downloaded the.tar.gz file;我去了 PyPI 并下载了 .tar.gz 文件;
Uploaded the file to the offline server.将文件上传到离线服务器。 Unzipped the file and followed the INSTALL.rst
解压缩文件并按照 INSTALL.rst
Although building from the.tar.gz source code required some more efforts.虽然从 .tar.gz 源代码构建需要更多的努力。 Thanks
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.