Comments (6)
Solved it for me:
sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
from pyenv.
Inspect or clean up the working tree at /tmp/python-build.20240123180517.7792
Results logged to /tmp/python-build.20240123180517.7792.log
Last 10 log lines:
File "/tmp/python-build.20240123180517.7792/Python-3.12.1/Lib/ensurepip/init.py", line 200, in _bootstrap
return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/python-build.20240123180517.7792/Python-3.12.1/Lib/ensurepip/init.py", line 101, in _run_pip
return subprocess.run(cmd, check=True).returncode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/python-build.20240123180517.7792/Python-3.12.1/Lib/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/python-build.20240123180517.7792/Python-3.12.1/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = ['/tmp/tmplqc4fw1f/pip-23.2.1-py3-none-any.whl'] + sys.path\nsys.argv[1:] = ['install', '--no-cache-dir', '--no-index', '--find-links', '/tmp/tmplqc4fw1f', '--root', '/', '--upgrade', 'pip']\nrunpy.run_module("pip", run_name="main", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:2023: install] Error 1
lzq@DESKTOP-D1OTMIV:~$ pyenv install 3.12.1
Downloading Python-3.12.1.tar.xz...
-> https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tar.xz
Installing Python-3.12.1...
BUILD FAILED (Ubuntu 22.04 using python-build 2.3.35-10-g2374260e)
Inspect or clean up the working tree at /tmp/python-build.20240123180650.20286
Results logged to /tmp/python-build.20240123180650.20286.log
Last 10 log lines:
File "/tmp/python-build.20240123180650.20286/Python-3.12.1/Lib/ensurepip/init.py", line 200, in _bootstrap
return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/python-build.20240123180650.20286/Python-3.12.1/Lib/ensurepip/init.py", line 101, in _run_pip
return subprocess.run(cmd, check=True).returncode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/python-build.20240123180650.20286/Python-3.12.1/Lib/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/python-build.20240123180650.20286/Python-3.12.1/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = ['/tmp/tmpj4rt4wj0/pip-23.2.1-py3-none-any.whl'] + sys.path\nsys.argv[1:] = ['install', '--no-cache-dir', '--no-index', '--find-links', '/tmp/tmpj4rt4wj0', '--root', '/', '--upgrade', 'pip']\nrunpy.run_module("pip", run_name="main", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:2023: install] Error 1
from pyenv.
Please add the necessary diagnostic details as per the issue template
from pyenv.
metoo
Last 10 log lines:
File "/tmp/python-build.20240206100328.57/Python-3.11.7/Lib/ensurepip/__init__.py", line 202, in _bootstrap
return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/python-build.20240206100328.57/Python-3.11.7/Lib/ensurepip/__init__.py", line 103, in _run_pip
return subprocess.run(cmd, check=True).returncode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/python-build.20240206100328.57/Python-3.11.7/Lib/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/python-build.20240206100328.57/Python-3.11.7/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmp0s399c09/setuptools-65.5.0-py3-none-any.whl\', \'/tmp/tmp0s399c09/pip-23.2.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmp0s399c09\', \'--root\', \'/\', \'--upgrade\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:1863: install] Error 1
Error: building at STEP "RUN export PYTHON_BUILD_MIRROR_URL_SKIP_CHECKSUM=1 && export PYTHON_BUILD_MIRROR_URL="https://mirrors.huaweicloud.com/python" && pyenv install 3.11.7": while running runtime: exit status 1
from pyenv.
Please add the necessary diagnostic details as per the issue template
@jxh150535011 same
from pyenv.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
from pyenv.
Related Issues (20)
- Python versions with different patch numbers do not work HOT 2
- Building fails with "./configure: line 5177: 5: Bad file descriptor" on almalinux 9.3 HOT 7
- "internal compiler error: Segmentation fault" WSL Ubuntu HOT 6
- pyenv no module encoding issue HOT 3
- 3.12.2 not in install list HOT 11
- curl: (22) The requested URL returned error: 503 when trying to download Python-3.8.18.tar.xz HOT 1
- "Internal compiler error: Segmentation fault" in Arch Linux HOT 1
- BUILD FAILED (OS X 12.7.3 using python-build 20180424) if my home directory name contains a space HOT 2
- BUILD FAILED with or without using brew on WSL2 HOT 3
- Rehashing is not applied after pip install in venv
- pyenv init slows down the shell startup a bunch (by about ~100 ms!) HOT 3
- Python 3.12.2 support HOT 1
- VSCode Jupyter not working with Pyenv: solution
- pyenv fails to install Python 3.12.1/3.12.2 on Raspberry Pi Zero 2W running Bullseye Lite 64-Bit HOT 5
- "pyenv: python3.11: command not found" despite having selected a global version HOT 5
- Add PACKAGE_LDFLAGS to python-build
- Installing Pyenv on Ubuntu 20.04 (Azure ML instance) fails HOT 4
- `_curses` fails to build on Ubuntu 22: "error: implicit declaration of function ‘setcchar’; did you mean ‘getwchar’?" HOT 3
- ginstall: cannot stat 'Modules/readline.cpython-312-darwin.so': No such file or directory HOT 4
- [Workaround] Debian/Ubuntu - TKInter module fails to build even if tk-dev is installed 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 pyenv.