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

PyCharm Python what is noinspection tag for code duplicates

I have the PyCharm inspection enabled for duplicated code fragment (Inspections --> General --> Duplicated code fragment). I am trying to use a noinspection tag to locally disable this inspection in my Python code. However, I can't figure out the…
Intrastellar Explorer
  • 3,005
  • 9
  • 52
  • 119
6
votes
0 answers

Can I treat Dictionary ItemsView as Iterable[tuple]?

I'm trying to process a dict object, and PyCharm is giving me an unexpected type warning. Here's a reduced example that produces the warning: X = type("X", (), {}) def big_foo(data: Dict[str, Any]) -> Dict[str, Any]: def little_foo(entries:…
ShapeOfMatter
  • 991
  • 6
  • 25
6
votes
3 answers

Unexpected tokens in in PyCharm Community Edition

I am new in using PyCharm but I am loving it gradually. I am getting a red underline on and the error is "Unexpected Token". Why PyCharm shows it? I can't understand.
6
votes
2 answers

PyCharm manage.py runserver error

Sorry to ask a noob question but I have no idea why this is happening. I've just reinstalled Django 1.3, and am trying PyCharm for the first time. When I run python manage.py runserver from Terminal everything goes without a hitch, however if I try…
David John Smith
  • 1,824
  • 2
  • 18
  • 22
6
votes
8 answers

I installed matplotlib via pip but when I try to import matplotlib to PyCharm I get an error

I'm trying to use matplotlib in python, specifically, in PyCharm IDE. I have Windows 10 and Python 3.8 and I checked that everything was up to date (like pip). I installed matplotlib via pip with the command "pip install matplotlib", till then…
tony_matos2
  • 79
  • 1
  • 1
  • 4
6
votes
3 answers

dyld: Library not loaded: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Python

When trying to run simple python3 code via pycharm, I get following error /Users/slimerski/PycharmProjects/studia/venv/bin/python /Users/slimerski/PycharmProjects/studia/zadania_14.py dyld: Library not loaded:…
Slimerski
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

YAML loader considering path as Hexadecimal number

I am trying to read a YAML file in Python, but due to '\' in the path it is considering that as a hexadecimal number and hence failing, Here is my code import yaml def parse_yaml(file_path): with open(file_path) as stream: yaml_dict =…
him
  • 111
  • 1
  • 10
6
votes
3 answers

Pycharm debugging using docker with GPUs

The Goal: To debug a Python application in PyCharm, where I set the interpreter to a custom docker image, using Tensorflow and so requiring a GPU. The problem is that PyCharm's command-building doesn't offer a way to discover available GPUs, as far…
n1k31t4
  • 2,745
  • 2
  • 24
  • 38
6
votes
2 answers

ESLint: 'Partial' is not defined in typescript

ESLint is not recognizing Partial of typescript but the compiled module does not give any error. const initialState: IAuthState = { authenticated: false, processing: false, }; const authReducer = (state: IAuthState = initialState, action: any):…
Faisal Manzer
  • 2,089
  • 3
  • 14
  • 34
6
votes
2 answers

PyCharm: Numbers to check Speed of PC

Some people are shy and won't tell the admin if an application is slow. Can I get some reliable numbers about the speed of the PC via PyCharm? I don't want artificial benchmark values, but real-world values of the daily PyCharm usage. Then you can…
guettli
  • 25,042
  • 81
  • 346
  • 663
6
votes
3 answers

Make already existing conda environment available to other projects

I have been working on a project in PyCharm within a Conda environment. Now I would like to start a new project and make it use the same conda environment. When I first created the initial environment in PyCharm, I did not select the checkbox that…
Ahmad Moussa
  • 876
  • 10
  • 31
6
votes
2 answers

pytorch debugging timeout with PyCharm

I have a frustrating problem, where I cannot debug my pytorch code while in Pycharm. While trying to inspect (breakpoint, then print e.g.) the code below, I receive a "Loading time out" import torch tensors = [] num_tensors = 16 shape =…
DsCpp
  • 2,259
  • 3
  • 18
  • 46
6
votes
0 answers

How to give permission to PyCharm to access python project within the Ubuntu WSL 18.04 folder?

I have installed Ubuntu 18.04 subsystem on Windows 10, and I installed (and set as default version) python 3.6. The current project I am working on is in a folder within Ubuntu WSL, and PyCharm python interpreter is set to the Ubuntu python…
6
votes
1 answer

Package import named differently than in requirements.txt causes PyCharm warning

This issue does not cause an actual problem when running the code, but rather is an issue of a PyCharm warning that I would like resolved so other programmers working on the project do not have to waste time investigating. The issue is that I have…
Rocket Man
  • 61
  • 3
6
votes
0 answers

vtk error in pycharm: GLEW could not be initialized

How can I run the simple python vtk example from here in pycharm? I've installed vtk version 8.1.2 using pycharm and I'm using python version 3.7.4. Also, I have windows 10. When I run the example file I get this instead of a 3D cylinder. ERROR: In…
Levi Baguley
  • 646
  • 1
  • 11
  • 18