Questions tagged [pycharm]

PyCharm is an integrated development environment (IDE) for Python. It is developed by JetBrains for Windows, Mac OS X and Linux. DO NOT use this tag on questions regarding code which merely happens to be written using PyCharm, use the appropriate language tag [python] instead.

PyCharm is an integrated development environment (IDE) for Python, developed by JetBrains. It is available on Windows, OS X and Linux.

It provides support for common Python frameworks such as Django, Flask, Pyramid and others.

Starting with version 3, a free and open-source edition of PyCharm was released; along with a professional (paid) edition.

If you have found a bug, it is usually better to report it at the public bug tracker.

For more information, browse the following:

  1. The official product page.
  2. The public bugtracker.
  3. Product blog.
  4. Support page.
16686 questions
6
votes
3 answers

Counter in range() not recognized as integer

I am trying to step through a list of lists operating on each element of each list using nested for loops. I am getting a warning from PyCharm that the type of the counter in the second for loop is not certain to be an integer, despite it is…
Pmason
  • 91
  • 4
6
votes
6 answers

Jupyter's shift+tab behavior in Pycharm?

I'll commonly be writing in a jupyter notebook and need a function signature/docstring, so I'll do something like type out print() and then with the cursor between the parentheses press shift+tab. Is there something comparable in pycharm? I have…
Andrew
  • 459
  • 5
  • 15
6
votes
2 answers

Pycharm - Disable 'Local variable 'xxx' might be referenced before assignment'

In pycharm, I would like to disable the following inspection warn: "Local variable 'xxx' might be referenced before assignment" but I can't find it in settings/inspections. PS: This is not a duplicate, as I understand this warn. I am just asking how…
u2gilles
  • 6,888
  • 7
  • 51
  • 75
6
votes
1 answer

Pycharm - Type hints are not installed

I keep getting this warning in PyCharm 2018.3.5: "Type hints are not installed". If I click 'Install', a log message like this appears: 6:11 PM Packages installed successfully: Installed packages: 'djangorestframework-stubs' But then the…
Eugene Yarmash
  • 142,882
  • 41
  • 325
  • 378
6
votes
4 answers

How to make a dataframe show in pycharm?

I have the following code in PyCharm. import pandas as pd df = pd.read_csv("test.csv") print(df) print(df.head()) But nothing shows up, and I get: Process finished with exit code 0 How can I have data showing in PyCharm like in RStudio?
Mercury
  • 81
  • 1
  • 1
  • 4
6
votes
5 answers

How can you convert all single-quoted strings to double-quoted strings in PyCharm?

I want to do some code cleanup and make all of the strings within a module consistently double-quoted strings. My problem is there are tons of them and going through by hand (alt+enter, arrow, enter) is tedious and my regex-Fu is weak. (keep…
Marcel Wilson
  • 3,842
  • 1
  • 26
  • 55
6
votes
1 answer

prevent flask reload on change

I am trying to code in pycharm in debug mode and as I am trying to work out a problem I am typing in the file I am working in. I am referencing current code in the debug console so I need that to stay. Unfortunately once I start typing code, flask…
user1601716
  • 1,893
  • 4
  • 24
  • 53
6
votes
1 answer

"Feather" library installation failing in PyCharm

I'm fairly new to Python and I'm trying to download the feather library but I am getting an error. I have already updated pip and setuptools but I am still getting errors. This is the output I get from PyCharm: Collecting feather Using cached…
njalex22
  • 367
  • 1
  • 4
  • 13
6
votes
2 answers

Showing class attributes in the PyCharm debugger when subclassing str

I want to see class attributes for a subclass of str in the debugger. Refer to the picture - I want to have the dropdown arrow next to a (which is a POSString object). In other words, in the Pycharm debugger I want to have the option to doubleclick…
Lomtrur
  • 1,703
  • 2
  • 19
  • 35
6
votes
6 answers

" No module named 'cv2' " but it is installed

I have installed the whl file with include opencv + contribution because i want to use the SIFT-algorithm. I installed it with pip in my conda environment, so when i tipp in "conda list" it shows me "opencv-python 3.4.5+contrib …
hajo
  • 314
  • 1
  • 4
  • 12
6
votes
1 answer

Using Pycharm with QGIS 3

I've installed QGIS 3.4 using the network installer (64 bit) and tried to use qgis with pycharm as described here: http://spatialgalaxy.net/2018/02/13/quick-guide-to-getting-started-with-pyqgis3-on-windows/ However, I can´t get the processing…
Rudolf
  • 61
  • 4
6
votes
0 answers

python main.py turn to text file in pycharm

I suddenly have a problem with file main.py . I am using pycharm with python version 3.6 from anaconda. I had a full project that run fine and now the 'main.py' became text file. If I open a new project and name a new python file as 'main' it…
anat
  • 705
  • 2
  • 7
  • 20
6
votes
1 answer

DataFrame view in PyCharm when using pyspark

I create a pyspark dataframe and i want to see it in the SciView tab in PyCharm when i debug my code (like I used to do when i have worked with pandas). It says "Nothing to show" (the dataframe exists, I can see it when I use the show()…
nofar mishraki
  • 526
  • 1
  • 4
  • 15
6
votes
3 answers

How to install mpl_finance packages into environment on Anaconda?

How to install the mpl_finance package into the environment path on Anaconda? I tried pip install mpl_finance but I still can't find the package on Anaconda, where did it go? I am pretty fresh in Python.
jihao yu
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Could not find a version that satisfies the requirement cv2

Obviously, I'm new to these problems, but I have a weird problem: I'm using MacOS and I'm using Mac Terminal. I installed opencv and even I saw its version and I was able to import cv2, but I wonder why I'm not able to install cv2 in pycharm? I…
armin ariana
  • 115
  • 1
  • 3
  • 7
1 2 3
99
100