How do I configure a Python interpreter in Intelli

2019-01-21 08:25发布

There is a tutorial in the IDEA docs on how to add a Python interpreter in PyCharm, which involves accessing the "Project Interpreter" page. Even after installing the Python plugin, I don't see that setting anywhere.

Am I missing something obvious?

4条回答
手持菜刀,她持情操
2楼-- · 2019-01-21 08:56

For Pycharm users:

FileSettingsProject: MyProjectProject Interpreter

查看更多
smile是对你的礼貌
3楼-- · 2019-01-21 09:03

With the Python plugin installed, navigate to File > Project Structure. Under the Project menu for Project SDK, select "New" and select "Python SDK", then select "Local". Provided you have a Python SDK installed, the flow should be natural from there - navigate to the location your Python installation lives.

查看更多
该账号已被封号
4楼-- · 2019-01-21 09:09

Follow these steps:

  1. Open Setting (Ctrl + Alt + s)
  2. Click on plugins
  3. Find Browse Repositories and click
  4. Search for "python"
  5. Select Python SDK or pycharm
  6. Restart the IDE
  7. Go to project structure
  8. Select the python SDK in projects or create a new project with python SDK.
查看更多
够拽才男人
5楼-- · 2019-01-21 09:15

So here is a simple project, where I have used Selenium and added that using external path

Error

Now you need to open Project Structure and go to SDK Section

Project Structure

Now Select your project's virtual environment. In the Classpath tab add the PYTHONPATH by clicking + button

Add SDK

and now the modules will be recognized

Module recognized

查看更多
登录 后发表回答