pythonpycharmversions

Working with second python version in pycharm


I need to work with python version 3.5 in order to run and modify a script containing pyqt5. I am currenly running python 3.6.

I would like to know how I download python 3.5 and install pyqt5 for that environment and then make it available for pycharm community edition. I have tried to use anaconda to manage a second python version but it is not working. Keeps giving me pyqt5 not found. Thank you


Solution

  • You can create a new virtual environment with conda using the following command and specify the required version. More info on conda create

    conda create -n py35 python=3.5

    it will install the Python3.5 on your system most likely in C:\Users\user\AppData\Local\Continuum\Anaconda3\envs You can then add that python version in Pycharm as the project interpreter using

    File -> Settings --> Project --> Project Interpreter

    Click on the Setttings icon in the right pane & locate the Python version on your system and then add it as the python version for this project.

    Refer Pycharm documentation for more details