PS C:\Users\andre> winget list PythonSoftware
Name ID Version
-----------------------------------------------------------------------
Python 3.9 PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0 3.9.2544.0
Я пытаюсь установить поэзию. Поэтому я загрузил новый сценарий установки с https://install.python-poetry.org/ и запустил его в терминале Windows. Вот результат:
PS C:\Users\andre\Downloads> python .\install-poetry.py
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:
C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Scripts
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.1.12)
Installing Poetry (1.1.12): Creating environment
Actual environment location may have moved due to redirects, links or junctions.
Requested location: "C:\Users\andre\AppData\Roaming\pypoetry\venv\Scripts\python.exe"
Actual location: "C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\Roaming\pypoetry\venv\Scripts\python.exe"
Actual environment location may have moved due to redirects, links or junctions.
Requested location: "C:\Users\andre\AppData\Roaming\pypoetry\venv\Scripts\python.exe"
Actual location: "C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\Roaming\pypoetry\venv\Scripts\python.exe"
Installing Poetry (1.1.12): An error occurred. Removing partial environment.
Poetry installation failed.
See C:\Users\andre\Downloads\poetry-installer-error-bzs5mfpr.log for error logs.
No pyvenv.cfg file
Traceback:
File "C:\Users\andre\Downloads\install-poetry.py", line 872, in main
return installer.run()
File "C:\Users\andre\Downloads\install-poetry.py", line 503, in run
self.install(version)
File "C:\Users\andre\Downloads\install-poetry.py", line 524, in install
with self.make_env(version) as env:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\contextlib.py", line 119, in __enter__
return next(self.gen)
File "C:\Users\andre\Downloads\install-poetry.py", line 596, in make_env
raise e
File "C:\Users\andre\Downloads\install-poetry.py", line 582, in make_env
yield VirtualEnvironment.make(env_path)
File "C:\Users\andre\Downloads\install-poetry.py", line 317, in make
env.pip("install", "--disable-pip-version-check", "--upgrade", "pip")
File "C:\Users\andre\Downloads\install-poetry.py", line 340, in pip
return self.python("-m", "pip", "--isolated", *args, **kwargs)
File "C:\Users\andre\Downloads\install-poetry.py", line 337, in python
return self.run(self._python, *args, **kwargs)
File "C:\Users\andre\Downloads\install-poetry.py", line 330, in run
raise PoetryInstallationError(
Видимо, проблема с местом установки Python, не так ли? Как я могу решить эту проблему?
Я установил Python 3.9 с помощью winget. [code]PS C:\Users\andre> winget list PythonSoftware Name ID Version ----------------------------------------------------------------------- Python 3.9 PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0 3.9.2544.0 [/code] Я пытаюсь установить поэзию. Поэтому я загрузил новый сценарий установки с https://install.python-poetry.org/ и запустил его в терминале Windows. Вот результат: [code]PS C:\Users\andre\Downloads> python .\install-poetry.py 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:
You can uninstall at any time by executing this script with the --uninstall option, and these changes will be reverted.
Installing Poetry (1.1.12) Installing Poetry (1.1.12): Creating environment Actual environment location may have moved due to redirects, links or junctions. Requested location: "C:\Users\andre\AppData\Roaming\pypoetry\venv\Scripts\python.exe" Actual location: "C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\Roaming\pypoetry\venv\Scripts\python.exe" Actual environment location may have moved due to redirects, links or junctions. Requested location: "C:\Users\andre\AppData\Roaming\pypoetry\venv\Scripts\python.exe" Actual location: "C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\Roaming\pypoetry\venv\Scripts\python.exe" Installing Poetry (1.1.12): An error occurred. Removing partial environment. Poetry installation failed. See C:\Users\andre\Downloads\poetry-installer-error-bzs5mfpr.log for error logs. [/code] И, наконец, вывод соответствующего файла журнала: [code]No pyvenv.cfg file
Traceback:
File "C:\Users\andre\Downloads\install-poetry.py", line 872, in main return installer.run() File "C:\Users\andre\Downloads\install-poetry.py", line 503, in run self.install(version) File "C:\Users\andre\Downloads\install-poetry.py", line 524, in install with self.make_env(version) as env: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\contextlib.py", line 119, in __enter__ return next(self.gen) File "C:\Users\andre\Downloads\install-poetry.py", line 596, in make_env raise e File "C:\Users\andre\Downloads\install-poetry.py", line 582, in make_env yield VirtualEnvironment.make(env_path) File "C:\Users\andre\Downloads\install-poetry.py", line 317, in make env.pip("install", "--disable-pip-version-check", "--upgrade", "pip") File "C:\Users\andre\Downloads\install-poetry.py", line 340, in pip return self.python("-m", "pip", "--isolated", *args, **kwargs) File "C:\Users\andre\Downloads\install-poetry.py", line 337, in python return self.run(self._python, *args, **kwargs) File "C:\Users\andre\Downloads\install-poetry.py", line 330, in run raise PoetryInstallationError( [/code] Видимо, проблема с местом установки Python, не так ли? Как я могу решить эту проблему?
Я установил Python 3.9 с помощью Winget.
PS C:\Users\andre> winget list PythonSoftware
Name ID Version
-----------------------------------------------------------------------
Python 3.9 PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0 3.9.2544.0...
Я установил Python 3.9 с помощью Winget.
PS C:\Users\andre> winget list PythonSoftware
Name ID Version
-----------------------------------------------------------------------
Python 3.9 PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0 3.9.2544.0...
Есть ли в файле pyvenv.cfg возможность динамического изменения каталога пользователей в зависимости от того, кто вошел в систему? Я создал сценарий на своем локальном компьютере в следующем каталоге...
Я пытаюсь перенести наши проекты на использование Poetry. Чего я хочу добиться, так это того, что когда люди откроют проект с помощью PyCharm, он автоматически создаст среду с использованием поэзии и установит зависимости. PyCharm поддерживает это,...
Я пытаюсь перенести наши проекты на использование Poetry. Чего я хочу добиться, так это того, что когда люди откроют проект с помощью PyCharm, он автоматически создаст среду с помощью Poetry и установит зависимости. PyCharm поддерживает это, однако,...