Comments (3)
anyjson==0.3.3
mysqlclient-1.3.13.tar.gz
这两个都安装报错了
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "/home/leo/桌面/mnt/OpsManage/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/leo/桌面/mnt/OpsManage/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/leo/桌面/mnt/OpsManage/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-o7uyovdx/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-o7uyovdx/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-o7uyovdx/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-o7uyovdx/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 18, in
File "/tmp/pip-install-wyvydewr/mysqlclient_059fcd10bd7e4cfb8f2e266372371286/setup_posix.py", line 53, in get_config
libs = mysql_config("libs_r")
File "/tmp/pip-install-wyvydewr/mysqlclient_059fcd10bd7e4cfb8f2e266372371286/setup_posix.py", line 28, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
OSError: mysql_config not found
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
python3.8.6
setuptools 49
from opsmanage.
没遇到过建议按照文档里面的要求使用python版本
from opsmanage.
解决了,是mysqlclient的安装问题,windows可以直接安装,macOS和linux安装前需要一些依赖。
macOS (Homebrew)
Install MySQL and mysqlclient:
$ # Assume you are activating Python 3 venv
$ brew install mysql pkg-config
$ pip install mysqlclient
If you don't want to install MySQL server, you can use mysql-client instead:
$ # Assume you are activating Python 3 venv
$ brew install mysql-client pkg-config
$ export PKG_CONFIG_PATH="$(brew --prefix)/opt/mysql-client/lib/pkgconfig"
$ pip install mysqlclient
Linux
Note that this is a basic step. I can not support complete step for build for all environment. If you can see some error, you should fix it by yourself, or ask for support in some user forum. Don't file a issue on the issue tracker.
You may need to install the Python 3 and MySQL development headers and libraries like so:
$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential pkg-config # Debian / Ubuntu
% sudo yum install python3-devel mysql-devel pkgconfig # Red Hat / CentOS
Then you can install mysqlclient via pip now:
$ pip install mysqlclient
Customize build (POSIX)
mysqlclient uses pkg-config --cflags --ldflags mysqlclient by default for finding compiler/linker flags.
You can use MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS environment variables to customize compiler/linker options.
$ export MYSQLCLIENT_CFLAGS=pkg-config mysqlclient --cflags
$ export MYSQLCLIENT_LDFLAGS=pkg-config mysqlclient --libs
$ pip install mysqlclient
from opsmanage.
Related Issues (20)
- 删除mysql的数据导致界面接口异常 HOT 2
- 修改资产报错接口500 HOT 1
- 项目发布流程卡住一直进行中 HOT 8
- 服务器列表获取失败 HOT 1
- crontab名称,禁用时不支持“空格” HOT 1
- cron修改时,不会影响目标服务器的cron HOT 2
- 计划任务-任务配置-Crontab,命令不支持单引号 HOT 1
- 目标服务器在哪儿录入啊 HOT 2
- css 未载入,因为它的 MIME 类型 "text/html" 不是 "text/css"。 HOT 1
- 部署完毕后,系统web界面显示异常,浏览器开发工具显示各种Uncaught SyntaxError: Unexpected token '<' (at XX.js HOT 4
- 部署工具-资产配置-资产组变更,“修改主机”项出现多个undefined HOT 1
- 访问api/assets接口500 HOT 1
- You have 39 unapplied migration(s) HOT 2
- 模塊工具 使用詢問 HOT 2
- ansible 相關問題 HOT 1
- demo环境打不开 HOT 1
- A graphical operation and maintenance inspection tool 面向个人的可视化运维巡检工具,个人运维工具中的 瑞士军刀 ,无需安装,开箱即用! 目前基础功能已开发完成,基本可用,还处于完善阶段 大概功能构想为: 创建一个项目,在项目里创建资源,再创建巡检模板,模板里可选择目标主机/主机组,选择要执行的巡检命令或操作,可定时执行,执行完成后可发邮件通知 以及在线批量shell交互,shell终端支持彩色及自定义单词/字符高亮 开源地址: https://github.com/limaofu/cofable
- 支持docker或者compose灵活编排一键部署吗?服务器要求需要多少配置 HOT 1
- 部署完成,页面504 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opsmanage.