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
1 answer

ValueError: URL must include a 'scheme', 'host', and 'port' component

Trying to use elastic search for a project. from elasticsearch import Elasticsearch es = Elasticsearch( "https://example.com", http_auth=("abc", "bcd"), ) But getting the error: ValueError: URL must include a 'scheme', 'host', and 'port'…
Ansh Gupta
  • 81
  • 3
  • 7
6
votes
3 answers

Mercurial ignore the ".idea" folder form PyCharm?

I am developing a Django app and it's my first time with Mercurial(using bitbucket). I have done some commits without adding ".idea" folder from PyCharm to hgignore. Now I have added it to hgignore and want to remove .idea from the central…
Amir Rustamzadeh
  • 4,302
  • 7
  • 35
  • 43
6
votes
4 answers

Environment variables in PyCharm Jupyter

In the standard Python Console or Terminal in PyCharm it is pretty straightforward to set environment variables. How can you set environment variables for PyCharm's managed Jupyter?
bluesummers
  • 11,365
  • 8
  • 72
  • 108
6
votes
1 answer

OSError: Could not find a suitable TLS CA certificate bundle

when making Api requests to binance , after building main.py to exe using pyinstaller, I get this error: OSError: Could not find a suitable TLS CA certificate bundle, invalid path: C:\Users\ADMINI~1\AppData\Local\Temp\2\_MEI76602\certifi\cacert.pem…
Notmyname
  • 65
  • 1
  • 1
  • 5
6
votes
0 answers

How to hint homogenous list of instances of same subclass?

class A: pass class A1(A): pass class A2(A): pass def help_here(s: WHAT_SHOULD_I_TYPE_HERE ): # How to hint this function that accepts list, # where all elements should be instances of same subclass of A. # Example 1: [A1(),…
Alexander C
  • 3,597
  • 1
  • 23
  • 39
6
votes
2 answers

Why PyCharm tkinter GUI is not working in macOS Monterey 12 update?

Today I updated the macOS to Monterey. And so far faced some problems for which I got few solutions, but for this problem there no Solution anywhere!! When I run a tkinter program then GUI window is blank black. This is a headache for me…
Dhondi Pranav
  • 85
  • 1
  • 6
6
votes
1 answer

'Invalid Python SDK' error right after creating a new project in PyCharm

Background Some time ago I seriously crashed my Windows computer while using PyCharm - I remember some errors about memory and then a hard crash with no blue screen - just black with some thin vertical lines and reboot to Windows installation /…
Tessarekh
  • 63
  • 1
  • 6
6
votes
3 answers

PyCharm git commit split code block change

Is there a way in PyCharm/IntelliJ to split a block of code-changes into multiple parts, so I can commit only parts of it and if so, how? I.e. in the example I can only tick the checkbox on line 222 and get the entire code-block in my changeset.…
Konstantin
  • 320
  • 2
  • 7
6
votes
1 answer

How to get interactive plot of pyplot when using jupyter pycharm

Is it possible to get interactive plot when using jupyter in PyCharm IDE ? If not, Why ? By interactive plot I mean a plot in a window where I can zoom. I tried this, but python always crash : #%% import matplotlib.pyplot as plt import numpy as…
Thomas LESIEUR
  • 408
  • 4
  • 14
6
votes
1 answer

cannot import name 'Sequence' from 'keras.utils'

when I use 'import talos' I get the following error: Traceback (most recent call last): File "C:/Users/Mirijam/Desktop/rp/RNN_classification/classification.py", line 4, in import talos File…
user14595340
6
votes
1 answer

How to rotate my 3D plots by mouse in PyCharm professional?

I am new to python and matplotlib. I worked on them by PyCharm Community Version for several months. In it, I do some plottings like below: from mpl_toolkits import mplot3d import matplotlib.pyplot as plt fig = plt.figure(figsize=[16, 8]) ax =…
cmpltrtok
  • 323
  • 3
  • 9
6
votes
4 answers

ModuleNotFoundError: No module named 'qrcode' python 3.9

I have already installed qrcode library in my command prompt and also updated my command prompt. In the command prompt it says that everything is fine but when I go to PyCharm and type in: import qrcode img = qrcode.make("This is the…
Xotiic
  • 61
  • 1
  • 1
  • 4
6
votes
1 answer

Why are the django settings imported twice, and test database created twice when running unit-tests?

Django: 1.3; PyCharm: 1.5.3 I am writing unit-tests for a Django application that uses GEOS to save Point objects. For local testing, I followed every step in customizing a Spatialite backend according to the GeoDjango documentation. I ran into a…
Li Xiong
  • 718
  • 1
  • 5
  • 8
6
votes
1 answer

No module named 'kiwisolver' when trying to import matplotlib

I am trying to plot some data in Python and therefore require matplotlib. When trying to import it, I get the ModuleNotFoundError. My line that raises the error is import matplotlib.pyplot as plt My installed packages include (according to…
naraghi
  • 430
  • 1
  • 6
  • 18
6
votes
3 answers

Python cannot be opened when launching PyCharm CE

I just downloaded the PyCharm CE (community edition), but am having trouble opening it. When I launch the program, an error pops up saying: python cannot be opened because of a problem. When I click for more details regarding the problem, I get the…
Ethan
  • 876
  • 8
  • 18
  • 34