Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows下安装报错 #2469

Closed
ltbyun opened this issue Dec 7, 2023 · 0 comments · Fixed by j178/pdm#1
Closed

windows下安装报错 #2469

ltbyun opened this issue Dec 7, 2023 · 0 comments · Fixed by j178/pdm#1
Labels
🐛 bug Something isn't working

Comments

@ltbyun
Copy link

ltbyun commented Dec 7, 2023

报错信息

An error occurred when executing ['C:\Users\ilala\AppData\Roaming\pdm\venv\Scripts\python.exe', '-m', 'pip', 'install', '-IU', 'pip']:
Collecting pip
Obtaining dependency information for pip from https://files.pythonhosted.org/packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl.metadata
Downloading pip-23.3.1-py3-none-any.whl.metadata (3.5 kB)
Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
------------------------ 1.3/2.1 MB 7.0 kB/s eta 0:01:59

重现方式

  1. win10系统下载https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe, 双击安装, 选择默认安装. 装好后, 默认命令是py, 不是python. 在命令行里输入python会跳转到windows应用商店.
  2. 复制pdm安装页面推荐的windows安装命令安装
    (Invoke-WebRequest -Uri https://pdm-project.org/install-pdm.py -UseBasicParsing).Content | python -
    直接报错
    Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
  3. 修改安装命令, 将python改为py再安装, 安装到一半时报上面的错误.

我看过python官方文档里的pip和venv的使用文档, 页面在这里 , 其中windows平台下所有命令都是用py, 从来没有用python的.
建议跟python官方及默认安装保持一致, windows下未经特殊处理, 是没有python这个命令的.

@ltbyun ltbyun added the 🐛 bug Something isn't working label Dec 7, 2023
@frostming frostming closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
frostming added a commit that referenced this issue Dec 7, 2023
Fix #2469

Signed-off-by: Frost Ming <me@frostming.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants