简体   繁体   中英

Standard Python 'venv' module not found

I am trying to create two virtual environments through Pycharm IDE.

  • one for Python 2.7
  • one for Python 3.8

However, I was able to create venv for 2.7 but could not succeed with 3.8; and end-up with "Error: Standard Python 'venv' module not found". as per [this reference] https://docs.python.org/3.7/installing/index.html ) venv is already part of python3.8.

设置错误

So, It would great if someone help me with my following questions.

  • Is it possible to setup two venv's with two different version of python?
  • How do i know if my python3.8 has venv module?
  • How can i install venv to python3.8 to be able to configure virtual environment in Pycharm?

I was able to fix this problem after installing the python 3.8 with executable installer. previously I got "Standard Python 'venv' module not found" problem because I have installed python 3.8 as embeddable zip file.

download the executable installer not the embeddable zip file绿色可执行

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM