[problem help] pip安装失败 Resolved
Tofloor
poster avatar
书童9527
deepin
2024-08-25 20:53
Author
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Requirement already satisfied: pip in $USER/.pyenv/versions/3.12.1/lib/python3.12/site-packages (24.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/

1、全新装的v23,但是用的之前20的home目录,弄完发现pip安装失败了

2、pyenv安装python也失败了

Downloading Python-3.12.5.tar.xz...
-> https://www.python.org/ftp/python/3.12.5/Python-3.12.5.tar.xz
Installing Python-3.12.5...

BUILD FAILED (Deepin 23 using python-build 2.4.10-2-g669d1f10)

Inspect or clean up the working tree at /tmp/python-build.20240825204557.18863
Results logged to /tmp/python-build.20240825204557.18863.log

Last 10 log lines:
  File "/tmp/python-build.20240825204557.18863/Python-3.12.5/Lib/ensurepip/__init__.py", line 200, in _bootstrap
    return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/python-build.20240825204557.18863/Python-3.12.5/Lib/ensurepip/__init__.py", line 101, in _run_pip
    return subprocess.run(cmd, check=True).returncode
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/python-build.20240825204557.18863/Python-3.12.5/Lib/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/python-build.20240825204557.18863/Python-3.12.5/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmpcy6rc8dk/pip-24.2-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmpcy6rc8dk\', \'--root\', \'/\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:2033:install] 错误 1

3、之前的python文件也没法用了

zsh: 可执行文件格式错误: .venv/bin/python

难受啊,我是不是不应该用旧的home目录。。。😭

Reply Favorite View the author
All Replies
deepinuser17
deepin
2024-08-26 08:18
#1

重新安装venv环境。

Reply View the author