第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

安裝 pip 包時“正則表達式的構建輪失敗”

安裝 pip 包時“正則表達式的構建輪失敗”

手掌心 2021-09-14 20:52:03
我在運行 Debian Stretch 的 Windows 10 WSL 上安裝 pip 包時遇到問題。在運行時sudo pip install invoice2data,python3-pip安裝后我遇到了以下錯誤。error: command 'x86_64-linux-gnu-gcc' failed with exit status 1----------------------------------------Failed building wheel for regexRunning setup.py clean for regexFailed to build regexx86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c regex_2/_regex.c -o build/temp.linux-x86_64-2.7/regex_2/_regex.oregex_2/_regex.c:46:20: fatal error: Python.h: No such file or directory #include "Python.h"                    ^compilation terminated.error: command 'x86_64-linux-gnu-gcc' failed with exit status 1----------------------------------------Command "/usr/bin/python -u -c "import setuptools, okenize;__file__='/tmp/pip-install-D9zG6P/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0dvlsB/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-D9zG6P/regex/
查看完整描述

3 回答

?
12345678_0001

TA貢獻1802條經(jīng)驗 獲得超5個贊

WSL 與該問題無關,這是一個相當標準的錯誤。


確保安裝了以下軟件包。使用apt-get install packagename. 此特定時間的問題已通過安裝python-dev.


python3

python3-pip

ipython3

build-essential

python-dev

python3-dev

作為單個命令:


sudo apt-get install python3 python3-pip ipython3 build-essential python-dev python3-dev


查看完整回答
反對 回復 2021-09-14
?
守著一只汪

TA貢獻1872條經(jīng)驗 獲得超4個贊

我在 Ubuntu 上運行 Python 3.5。我是如何安裝regexPython 包的:


$ sudo apt-get install libpython3.5-dev

$ pip3 install regex --no-use-wheel

背景研究詳情:


我Python.h通過使用apt-file來定位它來確定提供丟失文件的包名稱。


# install the apt-file package in case you don't have it

$ sudo apt-get install apt-file


# populate/refresh the local apt-file package data

$ sudo apt-file update


# search for /Python.h.  Since it's a C header file,

# I also grep for /include to limit the results.

$ sudo apt-file search /Python.h | grep /include

libpython2.7-dbg: /usr/include/python2.7_d/Python.h

libpython2.7-dev: /usr/include/python2.7/Python.h

libpython3.5-dbg: /usr/include/python3.5dm/Python.h

libpython3.5-dev: /usr/include/python3.5m/Python.h

pypy-dev: /usr/lib/pypy/include/Python.h

然后對我需要哪個包進行了有根據(jù)的猜測。忽略Python2,忽略調(diào)試(dbg),忽略pypy,從而留下libpython3.5-dev。


查看完整回答
反對 回復 2021-09-14
  • 3 回答
  • 0 關注
  • 406 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號