Skip to content
Advertisement

Tag: pycharm

PyCharm CE does not recognize .pyx files

PyCharm Community Edition (CE) does not recognize few Cython files as shown in the picture below (with PyCharm red mark under the file name). Could you please advise me on what can I do ? Answer The PyCharm Community Edition does not support Cython. You should get PyCharm Professional Edition to get that feature.

Writing Arabic in Pycharm console

In PyCharm I have no problem in printing Arabic in the console, but the problem that I can’t write in Arabic. Instead it is written as weird symbols. How can I fix it? Answer It’s likely that you’re using some weird encoding, try to change your file encoding to UTF-8 or UTF-16: more info: https://blog.jetbrains.com/idea/2013/03/use-the-utf-8-luke-file-encodings-in-intellij-idea/   If that doesn’t work

Matplotlib throws warning message because of findfont – python

I want to plot a basic graph, basically consisting of two lists of the form x = [1,2,3,…,d], y = [y1,y2,…,yd]. after using_ pyplot.plot(x,y) I get a huge amount of warning messages referring to findfont errors (see below..) I just installed matplotlib. All the threads I could find refer to changing fonts manually and having warning messages popping up. I

How to solve the ModuleNotFoundError: No module named ‘prompt_toolkit.formatted_text’ in Jupyter Notebook inside the Pycharm IDE?

I am using Pycharm 2018.2 version in ubuntu 18.04 and I am trying to use the JupyterNoteBook inside the pycharm it’s been loading and creating a new notebook. But the cell in the Jupyter always shows busy and it throws some error like ModuleNotFoundError: No module named ‘prompt_toolkit.formatted_text’. Eventhough, I restarted the kernel again and again it throws the same

__slots__ type annotations for Python / PyCharm

How can I provide type annotations for attributes which are defined via __slots__? E.g. for this class: (Python 2 compatible in a comment if possible (otherwise Python 3 only is fine), and also such that PyCharm can handle it (actually that is most important for me now).) Answer __slots__ only tells the type() object to make space for potential attributes.

OpenCV “The function is not implemented. Rebuild the library with Windows”

I see problem unsolvable.I get this error when I try to import numpy when I run attribute imread is not working cv2.error: OpenCV(3.4.1) C:projectsopencv-pythonopencvmoduleshighguisrcwindow.cpp:636: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function

ModuleNotFoundError when running script from Terminal

I have the following folder structure: app __init__.py utils __init__.py transform.py products __init__.py fish.py In fish.py I’m importing transform as following: import utils.transform. When I’m running fish.py from Pycharm, it works perfectly fine. However when I am running fish.py from the Terminal, I am getting error ModuleNotFoundError: No module named ‘utils’. Command I use in Terminal: from app folder python

Pycharm Can’t install TensorFlow

I cannot install tensorflow in pycharm on windows 10, though I have tried many different things: went to settings > project interpreter and tried clicking the green plus button to install it, gave me the error: non-zero exit code (1) and told me to try installing via pip in the command line, which was successful, but I can’t figure out

Advertisement