All Questions
121 questions
1
vote
1
answer
44
views
Poetry Install broken, ModuleNotFoundError but Module is installed. MacOS
After cloning and setting up my repo I use a poetry install
When running the code, I see
ModuleNotFoundError: No module named 'loguru'
The package is there however:
poetry add loguru
The following ...
0
votes
0
answers
33
views
Executing pyenv activate <virtualenv> before Eclipse with PyDev runs application
I need to use Eclipse with PyDev to debug an application that runs in a virtual environment. I establish the virtual environment with:
pyenv install 3.10.15
pyenv virtualenv 3.10.15 salt
pyenv ...
0
votes
1
answer
177
views
Cannot install some packages while using pyenv
I found that there are some fails in package installation when I am using pyenv.
I don't know the exact reason, but it cannot find installed modules while installing new package.
For example, when I ...
0
votes
0
answers
96
views
Pip from Python 2.7.10 installed via pyenv-win cannot install any packages
I installed pyenv-win to create virtual environments in windows. One of the environments I need requires Python 2.7.10. To create virtual environments for Python versions below 3.3 I need to install ...
0
votes
1
answer
608
views
lsp pyright cannot recognize pyenv virtualenv python interpreter
I use nvim and Mason to manage the lsp server pyright.
and just set pyright.setup{} and don't set any options.
local lspconfig = require("lspconfig")
lspconfig.pyright.setup{}
Because I ...
0
votes
0
answers
63
views
Problems with pyenv virtualenv and Django 1.6
I installed python 2.7 using pyenv to run an older project that still uses Django 1.6, but I can't get the path to work.
Even thou I have the virtualenv that I created with 2.7 activated, and all pip ...
3
votes
2
answers
1k
views
Is there a difference between pyenv activate and pyenv local?
I know that to activate a virtual environment with pyenv, we can run pyenv activate [virtualenv], but here, i also saw that we can "select" a virtual environment by running pyenv local [...
1
vote
2
answers
3k
views
Activating a pyenv virtual environment with direnv
I use both direnv and pyenv and would like to add something to my .envrc so that whenever I change directory, I also activate my virtual environment with pyenv.
I printed environment variables both ...
0
votes
0
answers
30
views
why do i can not execute "import lzma" successful in virtual python env create by pyenv [duplicate]
system
my system is ubuntu 20.04.
pyenv 2.3.25-3-g18ed727e
details:
i use pyenv create a new python version:"pyenv install 3.11.4" and through virtualenv plugin create some venvs base 3....
3
votes
4
answers
3k
views
Getting tox to use the Python version set by pyenv
I can't seem to wrap my head around managing Python versions. When I run tox, I can immediately see that it's using Python 3.7.9:
$ tox
py39: commands[0]> coverage run -m pytest
====================...
0
votes
1
answer
174
views
pyvenv not showing the correct python version
I have python 3.11.2 installed on my local machine. For a specific project I need to use python 3.9.13
So I installed pyenv, created a new directory and isntalled python version 3.9.13 in that ...
4
votes
2
answers
5k
views
msno.matrix() shows an error when I use any venv using pyenv
I tried many times installing several virtual environments using pyenv, but the system shows a error in missingno library. This is :
msno.matrix(df)
`ValueError ...
2
votes
0
answers
507
views
How can I improve my python environment setup on windows 10?
This is my current python environment setup on Windows 10:
For the remainder of this post I will assume you have chocolatey installed. Also I'm using the bash as admin terminal from cmder.
Install ...
0
votes
0
answers
78
views
What is the reliable way to select current directory's python with pyenv + pipenv or pip
I have two problems:
pipenv ignores pyenv settings;
my pip shortcuts are ignoring pyenv settings too:
iuri@tartaruga:~$ pyenv version
3.9.16 (set by /home/iuri/.pyenv/version)
iuri@tartaruga:~$ pyenv ...
3
votes
1
answer
4k
views
Enable pyenv-virtualenv prompt at terminal
I just installed pyenv and virtualenv following:
https://realpython.com/intro-to-pyenv/
After completing installation I was prompted with:
pyenv-virtualenv: prompt changing will be removed from future ...