PyCharm не видит последнюю версию интерпретатора Python
Больше года не работал с Python и выскочила странная вещь. За это время система (Fedora) много раз обновляась и сейчас версия у меня 3.9. Что подтверждается просто:
$ python --version Python 3.9.2
Эту версию и видим в каталоге /usr/bin
$ pwd /usr/bin $ ls python* python python2-config python3.9-x86_64-config python-argcomplete-tcsh python2 python3 python3-config python-config python2.7 python3.9 python3-html2text python-html2text python2.7-config python3.9-config python-argcomplete-check-easy-install-script
Это присказка. Сказка же заключается в том, что есть питоновский скрипт, который давным-давно отлажен и работает. В него я вставил печать версии интерпретатора. При запуске видим вот что:
$ python Launch.py Версия интерпретатора: 3.9.2 (default, Feb 20 2021, 00:00:00)
Как и следует из здравого смысла. Но, если я пытаюсь запустить тот же самый скрипт в рамках проекта PyCharm, то выдаётся вот такое сообщение:
Версия интерпретатора: 3.8.7 (default, Nov 10 2011, 15:00:00)
И ничего не работает. Если пытаться в свойствах проекта изменить текущий интерпретатор, то PyCharm просто не виидит последнюю версию: Можно предположить, что эта ахинея достаётся из каких-то кэшенй PyCharm. Я полностью снёс каталог .PyCharm в домашней директории, но это не помогло. Как исправить сиьуацию?
Почему PyCharm не видит другие интерпретаторы Python?

Не могу в PyCharm указать путь к интерпретатору Python3.8.
Стоит LMDE 3, в ней предустановлен Python 3.5.3, находится: /usr/bin/python3
Поставил себе Python3.8, тот находится: /usr/local/bin/python3.8
Запускаю PyCharm, открываю Settings, ищу путь к 3.8, IDE не видит директории /local внутри директории /usr
Кроме того, IDE не видит также ни /usr/bin/python, ни /usr/bin/python3, ни /usr/bin/python3.5, зато использует Python3.7, который не распознаётся системой (но тут, как я понимаю, дело в PATH) и которого ВООБЩЕ нет в /usr/bin/
Что вообще происходит?
Как указать необходимый интерпретатор?
- Вопрос задан более трёх лет назад
- 5006 просмотров
1 комментарий
Простой 1 комментарий
PyCharm не видит интерпретатор
Интерпретатор для PyCharm
Доброго времени суток форумчане! Еще даже не начал изучать питон, только что установил Pycharm.
Настройка интерпретатор на PyCharm под Windows 7
Windows 7. В общем установил я Python 3.5 и поставил PyCharm py(последний самый), когда создал.
Pycharm видит все модули даже «мои» через modules, но дело в том, что при import. не видит мой модуль
но проблема в том, что при import. или from. pycharm не видит мой собственный модуль. Во всех.
PyCharm не видит модуль
Я подключаю в python, через .pth файл, модуль как .pyd. Через консоль и jupyter модуль импортится.
Pycharm не видит numpy
Помогите. Pycharm не видит numpy. Причем через обычный IDLE все работает. Я пытаюсь прописать в.
1287 / 672 / 365
Регистрация: 07.01.2019
Сообщений: 2,210
Там вверху ссылка синего цвета, Configure Python interpretor, нажимаете на нее и появится окно, там укажите путь к python.exe
Регистрация: 15.12.2015
Сообщений: 28
Попробуй не выбирать готовый файл .py а создать новый проект для .py и туда перенести свой .py или там создать новый. просто в твоем проекте не подключено скорее всего ничего. скрин ветки проекта скинь если не поймешь
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
Помогаю со студенческими работами здесь
pycharm не видит aiohttp
Привет всем! Мой проект работает на python3.9. Там нужен aiohttp. Когда я написал код, я запустил.

Почему PyCharm не видит sklearn?
Привет! Почему мой PyCharm не видит sklearn? Хотя я его установил через pip install. Не пойму в чём.
Pycharm не видит методы объкта
Добрый день в хату. Проблема в следующем: при работе в pycharm, если импортировать библиотеку.
PyCharm сломался и не видит библиотеку
Здравствуйте! PyСharm не видит стандартную библиотеку turtle — чеперашка для изучения питона. (OS.

PyCharm не видит venv из терминала
Всем привет, собственно проблема такая, создаю проект, выбираю папку с проектом и нажимаю создать.
Configure a Poetry environment
Poetry is a tool that facilitates creating a Python virtual environment based on the project dependencies. You can declare the libraries your project depends on, and Poetry will install and update them for you.
Project dependencies are recorded in the pyproject.toml file that specifies required packages, scripts, plugins, and URLs. See the pyproject reference for more information about its structure and format.
To use Poetry in PyCharm, you need to install it on your machine and create a specific Python environment.
Install Poetry
- Open Terminal (on macOS and Linux) or PowerShell (on Windows) and execute the following command:
curl -sSL https://install.python-poetry.org | python3 —
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py —
If you have installed Python through the Microsoft Store, replace py with python in the command above.
curl -sSL https://install.python-poetry.org | python3 —
export PATH=»/Users/jetbrains/.local/bin:$PATH»
$Env:Path += «;C:\Users\jetbrains\AppData\Roaming\Python\Scripts»; setx PATH «$Env:Path»
poetry —version
Create a Poetry environment

- Do one of the following:
- Click the Python Interpreter selector and choose Add New Interpreter .
- Press Control+Alt+S to open Settings and go to Project: | Python Interpreter . Click the Add Interpreter link next to the list of the available interpreters.
- Click the Python Interpreter selector and choose Interpreter Settings . Click the Add Interpreter link next to the list of the available interpreters.
- Select Add Local Interpreter .
- In the left-hand pane of the Add Python Interpreter dialog, select Poetry Environment .
- The following actions depend on whether you want to create a new Poetry environment or to use an existing one. New Poetry environment
- Select Poetry Environment .
- Choose the base interpreter from the list, or click and find the desired Python executable in your file system.
- If your project contains pyproject.toml , you can choose whether you want to install the packages listed in it by enabling or disabling the Install packages from pyproject.toml checkbox. By default, the checkbox is enabled.
- If PyCharm doesn’t detect the poetry executable, specify the following path in the Poetry executable field, replacing jetbrains with your username:
/Users/jetbrains/Library/Application Support/pypoetry/venv/bin/poetry
C:\Users\jetbrains\AppData\Roaming\pypoetry\venv\Scripts\poetry.exe
/home/jetbrains/.local/bin/poetry
- Make sure that the project directory contains a pyproject.toml file.
- Select Existing environment . Then expand the Interpreter list and choose the desired interpreter.
- If the desired interpreter is not on the list, click, and then browse for the Python executable within the previously configured Poetry environment.
The selected Poetry environment will be reused for the current project.
If you select a poetry environment when creating a new Python project, PyCharm adds two files to your project:
- pyproject.toml : specifies the project requirements
- poetry.lock : records changes in the projects requirements
Each time you modify the pyproject.toml file, PyCharm notifies you and offers two actions: to record the changes in the poetry.lock file ( poetry lock ) or to record the changes and install the unsatisfied requirements ( poetry update ).

Create a Poetry environment using pyproject.toml

- When you open a project that contains pyproject.toml , but no project interpreter is configured, PyCharm suggests that you create a Poetry environment.
- Click Set up a poetry environment using pyproject.toml if you want PyCharm to configure Poetry for you automatically. Alternatively, you can click Configure Python interpreter to follow the standard workflow.
- If PyCharm cannot autodetect the Poetry executable, specify the path to it and click OK .
A new Poetry environment will be configured for your project and the packages listed in pyproject.toml will be installed.
