Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the reason why pycharm keeps connecting to the console

Tags:

pycharm

when I run my python file it's nothing except express "connecting to console" like this

enter image description here

what's wrong?

like image 414
bgx Avatar asked Dec 28 '18 12:12

bgx


People also ask

Why is PyCharm running in console?

The main reason for using the Python console within PyCharm is to benefit from the main IDE features, such as code completion, code analysis, and quick fixes.

How do I reset PyCharm console?

From the main menu, select File | Manage IDE Settings | Restore Default Settings. Alternatively, press Shift twice and type Restore default settings . Click Restore and Restart. The IDE will be restarted with the default configuration.

Why my PyCharm is not working?

Check the edition of PyCharm and enable the Diagrams plugin in the plugin settings. In some cases, you might need to perform diagnostic steps to identify whether the problem occurs in PyCharm or in your working environment.

What is PyCharm console?

Python console enables executing Python commands and scripts line by line, similar to your experience with Python Shell.


2 Answers

I solved my issue and here is how I did it . I create an new environment in anaconda with python 3.6 and then use pip to install the package I want, meanwhile when we import our new environment, we should check inherit global site-packages.Then we can use Pycharm as we want.

like image 57
bgx Avatar answered Dec 25 '22 04:12

bgx


  1. Press CTRL + ALT + S to open your setting.
  2. Go to your Project: -> Project Interpreter -> The Gear on top right
  3. Choose the Conda Environment
  4. Follow this link: https://docs.anaconda.com/anaconda/user-guide/tasks/pycharm/
like image 37
Azriel Tan Avatar answered Dec 25 '22 05:12

Azriel Tan