Setting python env fails
See original GitHub issue- [x ] I am on the latest Poetry version.
- [x ] I have searched the issues of this repo and believe that this is not a duplicate.
- [x ] If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: archlinux from aur
- Poetry version: 1.0.10
- Link of a Gist with the contents of your pyproject.toml file:
Issue
~/D/c/l/r/h/i/inference-image (develop|✔) 🔥🔥 poetry env use /home/magnus/.pyenv/versions/3.8.5/bin/python
Creating virtualenv inference-NAwQdqdj-py3.8 in /home/magnus/.cache/pypoetry/virtualenvs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'PosixPath' is not defined
Using virtualenv: /usr
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to fix No Python error | Fix Python is not recognized
In this video, you will learn how to set the environment variables path in python to fix the no python error, and fix...
Read more >Failed to create virtual environment in PyCharm - Stack Overflow
Once pip installed, install the package using pip3 install virtualenv . Then go back to Pycharm IDE settings to set up the venv....
Read more >venv — Creation of virtual environments — Python 3.11.1 ...
When a virtual environment has been activated, the VIRTUAL_ENV environment variable is set to the path of the environment. Since explicitly activating a...
Read more >Manage Python environments and interpreters - Visual Studio ...
If no environments appear, it means Visual Studio failed to detect any Python installations in standard locations. For example, you might have ...
Read more >Package installation issues | PyCharm Documentation
You might encounter a problem when installing a Python package in the project settings or in the Python Package tool window. Eventually, most...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This indeed works now, thanks!
Hello,
so first of all, my bad seems like Archlinux poetry is outdated, sorry for that.
For the env usage I was told to do so here: https://github.com/python-poetry/poetry/issues/3342#issuecomment-724198784 at least that is my interpretation of that comment.