Official Install on Windows PowerShell failed on FileNotFoundError
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với install-poetry.py, đặc biệt là Installer.run, Installer.install, make_env và VirtualEnvironment.make, sau đó tái hiện lệnh PowerShell chính thức với Python 3.9.6 và 3.8.10 trên Windows. Kiểm tra đường dẫn tạo môi trường ảo và lỗi của subprocess; hoàn tất khi quá trình cài đặt được tài liệu hóa hoàn thành mà không có FileNotFoundError và Poetry được khôi phục sau khi gỡ cài đặt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I've been trying to update my 1.1.13 poetry install to 1.2.2 using the official doc but it failed.
PS D:\Downloads>(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python3 -
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
D:\AppData\Roaming\Python\Scripts
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.2.2)
Installing Poetry (1.2.2): Saving existing environment
Installing Poetry (1.2.2): Creating environment
Installing Poetry (1.2.2): An error occurred. Removing partial environment.
Installing Poetry (1.2.2): Restoring previously saved environment.
Traceback (most recent call last):
File "D:\Downloads\install-poetry.py", line 940, in <module>
sys.exit(main())
File "D:\Downloads\install-poetry.py", line 919, in main
return installer.run()
File "D:\Downloads\install-poetry.py", line 550, in run
self.install(version)
File "D:\Downloads\install-poetry.py", line 571, in install
with self.make_env(version) as env:
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\contextlib.py", line 117, in __enter__
return next(self.gen)
File "D:\Downloads\install-poetry.py", line 643, in make_env
raise e
File "D:\Downloads\install-poetry.py", line 629, in make_env
yield VirtualEnvironment.make(env_path)
File "D:\Downloads\install-poetry.py", line 319, in make
builder.create(target)
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\venv\__init__.py", line 75, in create
self._setup_pip(context)
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\venv\__init__.py", line 298, in _setup_pip
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable
and the error same occurs after poetry uninstall with both python 3.9.6 and python3.8.10
I now don't have poetry anymore on my computer 😢
- Ngôn ngữ chính
- Python
- Star
- 255
- Fork
- 65
- Merge trung bình
- 2 giờ 48 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của python-poetry/install.python-poetry.org
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
python-poetry/install.python-poetry.org#144 · 8 bình luận · 2 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
python-poetry/install.python-poetry.org#177 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của python-poetry/install.python-poetry.org
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stephrobert/dsoxlab#238 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
sublimehq/package_control#1780 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nwg-piotr/nwg-displays#145 ·