pip

Linux学习27-安装mysqlclient提示mysql_config not found问题

∥☆過路亽.° 提交于 2021-01-24 01:52:00
前言 Linux上使用pip 安装mysqlclient 时遇到报错 mysql_config not found 主要原因是缺少依赖包:mysql-devel 遇到问题 使用pip 安装 mysqlclient pip3 install mysqlclient 出现报错 /bin/sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-ixqbqcm3/mysqlclient/setup.py", line 17, in <module> metadata, options = get_config() File "/tmp/pip-install-ixqbqcm3/mysqlclient/setup_posix.py", line 44, in get_config libs = mysql_config("libs_r") File "/tmp/pip-install-ixqbqcm3/mysqlclient/setup_posix.py", line 26, in mysql_config raise EnvironmentError("%s not found" % (mysql

How to install/compile pip requirements in parallel (make -j equivalent)

风流意气都作罢 提交于 2021-01-23 06:20:25
问题 I have a lot of packages to install in my pip requirement and I'd like to process them in parallell. I know that, for example, that if I want n parallel jobs from make I have to write make -j n ; is there an equivalent command for pip requirements? Thanks! 回答1: Sometimes pip uses make to build dependencies. If before it starts you set MAKEFLAGS like: export MAKEFLAGS="-j$(nproc)" pip install -r requirements.txt This may help building native dependencies. Note: nproc resovles as the number of

How to install/compile pip requirements in parallel (make -j equivalent)

随声附和 提交于 2021-01-23 06:18:44
问题 I have a lot of packages to install in my pip requirement and I'd like to process them in parallell. I know that, for example, that if I want n parallel jobs from make I have to write make -j n ; is there an equivalent command for pip requirements? Thanks! 回答1: Sometimes pip uses make to build dependencies. If before it starts you set MAKEFLAGS like: export MAKEFLAGS="-j$(nproc)" pip install -r requirements.txt This may help building native dependencies. Note: nproc resovles as the number of

How to install/compile pip requirements in parallel (make -j equivalent)

我与影子孤独终老i 提交于 2021-01-23 06:15:23
问题 I have a lot of packages to install in my pip requirement and I'd like to process them in parallell. I know that, for example, that if I want n parallel jobs from make I have to write make -j n ; is there an equivalent command for pip requirements? Thanks! 回答1: Sometimes pip uses make to build dependencies. If before it starts you set MAKEFLAGS like: export MAKEFLAGS="-j$(nproc)" pip install -r requirements.txt This may help building native dependencies. Note: nproc resovles as the number of

How to fix “ERROR: Command errored out with exit status 1” when using pip to install numpy in Python 3.8.0

孤者浪人 提交于 2021-01-22 17:02:26
问题 After upgrading Python to 3.8.0, I have trouble installing packages related to numpy using pip, including numpy, matplotlib and sklearn. The error message is as follows: What should I do to solve this problem? C:\WINDOWS\System32>pip install numpy ... Installing collected packages: numpy Running setup.py install for numpy ... error ERROR: Command errored out with exit status 1: command: 'c:\users\tonakai\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools,

How to fix “ERROR: Command errored out with exit status 1” when using pip to install numpy in Python 3.8.0

半世苍凉 提交于 2021-01-22 17:00:57
问题 After upgrading Python to 3.8.0, I have trouble installing packages related to numpy using pip, including numpy, matplotlib and sklearn. The error message is as follows: What should I do to solve this problem? C:\WINDOWS\System32>pip install numpy ... Installing collected packages: numpy Running setup.py install for numpy ... error ERROR: Command errored out with exit status 1: command: 'c:\users\tonakai\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools,

How to fix “ERROR: Command errored out with exit status 1” when using pip to install numpy in Python 3.8.0

本小妞迷上赌 提交于 2021-01-22 16:59:54
问题 After upgrading Python to 3.8.0, I have trouble installing packages related to numpy using pip, including numpy, matplotlib and sklearn. The error message is as follows: What should I do to solve this problem? C:\WINDOWS\System32>pip install numpy ... Installing collected packages: numpy Running setup.py install for numpy ... error ERROR: Command errored out with exit status 1: command: 'c:\users\tonakai\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools,

linux下python升级

浪子不回头ぞ 提交于 2021-01-22 15:29:04
  在安装完虚拟机后,执行命令:python -v 发现默认安装的python版本是2.7,我想用httprunner,而它只支持3.4及以上,因此开始安装python3.6,安装步骤如下: 1、 下载python3.6: wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz 2、安装python:  2.1)创建目录: # mkdir -p /usr/local/python3  2.2)解压: # tar -zxvf Python-3.6.1.tgz  2.3)进入解压后的目录,编译安装:(1) # cd Python-3.6.1 (2) # ./configure --prefix=/usr/local/python3 (3)#make (4)make install  2.4)建立软链接: ln -s /usr/local/python3/bin/python3 /usr/bin/python3  2.5)将/usr/local/python3/bin加入PATH:(1) # vim ~/.bash_profile (2) PATH = $PATH:$HOME / bin : / usr / local / python3 / bin (3)修改完使其生效: # source ~/.bash

鸿蒙 移植 树莓派(上)搭建环境下载源码

不羁的心 提交于 2021-01-22 11:16:11
目录: 1、环境搭建 2、下载源码 3、树莓派启动流程 1、环境搭建 编译鸿蒙的源码建议在Ubuntu20.04下进行,windows下会出现各种奇怪的问题,不建议使用。 1.1、VirtualBox 虚拟机安装 VirtualBox官网下载地址: https://www.virtualbox.org/ Ubuntu20.04官网下载地址: https://ubuntu.com/download/desktop 关于VirtualBox和Ubuntu的安装和使用就不展开了,百度一下资料很多。 1.2、改sh为bash ls -l /bin/sh #如果显示为“/bin/sh -> bash”则为正常,否则请按以下方式修改: sudo dpkg-reconfigure dash #然后选择no 1.3、安装打包工具mkfs.vfat mtools sudo apt-get install dosfstools mtools #官方要求安装的2个工具 sudo apt-get install zip #官方文档没写,但是rootfs过程需要 sudo apt-get install python3-distutils #官方文档没写,但是build过程需要 1.4、下载安装编译工具gn ninja llvm hc-gen hc-gen:鸿蒙驱动hdf框架之类的

How to fix “.dist-info directory not found” in my package?

∥☆過路亽.° 提交于 2021-01-22 10:32:29
问题 I have a Python 2 package that I'm trying to upgrade to Python 3. It was written by someone who used to work on the same team I'm on now but who is no longer with the company, and unfortunately nobody left on the team is able to help out. After running 2to3 on the files of the package, I ran python setup.py sdist to create a package, placed the package in a local repository, then attempted to use pip install to install the package. It ended up erroring out with the following: Exception: