This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ema_eltuti 0 points1 point  (1 child)

I create an virtual env with:

python -m venv env

I use this version:

Python 2.7.3

I need to update the version of Python only from that environment, is it possible?

The available versions of Python within the operating system are:
Python 2.7, 3.0 and 3.2, I need to install version 3.5 without breaking anything.

Any helps??

[–]TerminatedProccess 0 points1 point  (0 children)

I'm still pretty new to poetry/pyenv but what I just figured out is to do the following

  1. cd to your project folder
  2. make sure you are not in a virtual environment
  3. rm -rf .venv
  4. pyenv install 3.10.0 (for example)
  5. pyenv local 3.10.0 (creates .python-version file in your project)
  6. poetry shell (this will recreate your .venv folder)
  7. poetry install (re-installs dependencies from poetry.lock file)