Hot answers tagged

97 votes
Accepted

Can't install virtual interpreter in PyCharm in Linux

I had to install it. This was fresh Kubuntu 18.04 install, obviously, without this needed package. sudo apt-get install python3-distutils After that I restarted PyCharm and creating virtual project ...
  • 1,949
33 votes

How can I increase the memory heap in pycharm

Help->Find Action->(type "VM Options")->(Click)"Edit Custom VM Options" Pycharm (2016.2) will open the appropriate vmoptions file (pycharm.vmoptions or pycharm64.options) in the editor before you. ...
  • 918
19 votes
Accepted

How can I increase the memory heap in pycharm

Under the /bin directory of your pycharm installation, there is a file pycharm.vmoptions. You can use this to customize the options that are passed to the JVM. The maximum heap size should be given by ...
  • 1,432
18 votes

How do I find which software is doing an SSH connection?

Actually, I found the answer. It's a pycharm plugin called Git Integration. After I disabled this plugin, the problem was solved.
17 votes
Accepted

PyCharm: Turn on Python 3 Code Checking in a Python 2 Project

I use the Python Community Edition extension in IDEA, currently version 5.1.145.45. Open Settings. Under Editor -> Inspections find the section in the center pane for "Python" there is now a setting ...
  • 568
16 votes
Accepted

Pycharm debugger does not work with pytorch and deep learning

I had the same problem for weeks and just managed to fix it! The solution was to set num_workers to 0 during creation of the DataLoader object.
15 votes
Accepted

My PyCharm run is working but debugging is failing

After a hell lot of searching and experimenting, found the solution for my issue. My repo consists of a module named code in it. Similarly, python has a same-named module for debugging, which ...
14 votes

How do I find which software is doing an SSH connection?

sudo lsof | grep ssh | grep git| grep IPv4 on the client machine that's doing it should tell you what's doing it at the time. lsof will tell you what's using a file (and everything is a file in *nix)...
  • 125k
14 votes

Can't install anything on pip

For those who encounter this and need to use Python 3.8+, make sure to update you setuptools to version 42.0.0 (or later). pip install --upgrade setuptools
  • 241
11 votes
Accepted

PyCharm is not searching the entire project

Edit >> Find >> Find in Path (This will search the entire project.) Highlighting an expression and pressing Ctrl+Alt+F7 finds all usage also. Update: In the version I am currently using, PyCharm ...
8 votes

How to remove Open Folder as Pycharm Community Edition Project

First of all, Win + R and type regedit (Registry Editor), press Enter. To delete "Open Folder as PyCharm ..." in the menu when right click on the folder background: Navigate to Computer\...
7 votes

Can't install virtual interpreter in PyCharm in Linux

If @Hrvoje T's answer did not work (it did not work for me) then try this: Run this command and you should be able to install the packaging tools in Pycharm: sudo apt install python3-pip It's ...
7 votes
Accepted

PyCharm: Can't enter AltGr keys on a french keyboard

A workaround from this issue: Under Help|Find action, type 'registry' The first hit is 'Registry...', click it You must see the a key-value panel, uncheck the 'actionSystem.force.alt.gr' item
7 votes

My Pycharm IDE cannot connect debugger

Disable "PyQt compatible" checkbox in the Settings under Build, Execution, Deployment --> Python Debugger. Then debug again the code and it should works.
  • 171
5 votes
Accepted

How to add a color scheme to PyCharm?

Instead of tweaking with file path. 1) Download a color theme from here 2) Pycharm > File > Import Setting > point to the color theme downloaded in (1) Pycharm should recognise this as a theme (i.e....
  • 496
4 votes

Is there a way to unite WSL2 Ubuntu, Tensorflow-GPU, CUDA, and Pycharm[windows]?

Now there is one. You can install a WSL 2, that has CUDA and with it TensorFlow support: https://docs.microsoft.com/de-de/windows/win32/direct3d12/gpu-cuda-in-wsl Then you can install PyCharm and ...
  • 41
3 votes
Accepted

vim emulator does not work properly in pycharm ipython notebook

Checking submitted issues for Pycharm on the Jetbrains site reveals the following: In a cell, insert mode is activated by default. Unfortunately, Esc is trapped by the IDE because it is needed for ...
3 votes
Accepted

Move Code PyCharm

How do I unindent lines? Unindent Selection Shift+Tab Move the selected block to the previous indentation level. Source Basic Editing
  • 149k
3 votes

How to jump to top or bottom of script with keyboard shortcuts?

Mac OS X defaults in PyCharm are - Cmd + Fn + <UP>: Top of the document (equivalent of gg in vi/m) Cmd + Fn + <DOWN>: Bottom of the document (equivalent of G in vi/m)
  • 131
3 votes
Accepted

Can't start Pycharm due to inability to detect graphics settings

That error is seen if no DISPLAY var is set, you wouldn't be able to run xterm for that reason either. Nothing to do with your graphics card. Just correct your DISPLAY settings and then re-try ...
3 votes

Folders displaying in orange color in python 3, pycharm

The directory is marked as excluded. Right-click on the directory in the project tree -> Mark Directory as ... -> Excluded.
3 votes

How do I enable WSL in pycharm interpreter settings?

Remote Python interpreters ( SSH, Vagrant, WSL (only for Windows)). Supported only in PyCharm Professional. <<---here
  • 31
3 votes
Accepted

Errors while installing Python packages with Pip

TreeDict's last release was in 2013. It's not compatible with Python 3 and therefore cannot be installed. (The errors show that it's using invalid print syntax, for example.) You probably also don't ...
  • 218k
2 votes
Accepted

PyCharm - Keyboard shortcut for markdown preview tab

Shortcuts is already assigned: ⇧+⌃+Rigth Arrow for switching on right tab and same for left with Left arrow
2 votes

How to update git on RHEL without access to root?

Compile it and then install it locally. - Step-by-step: go to https://github.com/git/git and download the zip file. Extract it to a convenient place and cd into it. If you are fine with git ...
  • 1,929
2 votes

pycharm: keyboard shortcut to switch between windows

right tab: cmd + shift + [ left tab: cmd + shift + ] You can change this in Pycharm/Preferences/Keymap/Select Next Tab
2 votes

Docker in PyCharm - Can I read files on my host computer?

You can mount one or more local directories inside your Docker container. This way you can give PyCharm access to your source files. This is straightforward on Linux using the -v <host-directory&...
  • 2,530
2 votes

My PyCharm run is working but debugging is failing

I had/have Python Community Edition (2019.1.1, now 2019.3.3) installed on Windows laptop. I named a new file "String". It took some time before I realized it was the name which caused the debugger to ...
2 votes

Making PyCharm 2018 'look' like Sublime text 3

Have you tried simply changing the color scheme? Settings -> Editor -> Color Scheme -> set it to Monokai
2 votes

Can't install virtual interpreter in PyCharm in Linux

Neither @Hrvoje T and @hyukkyulee worked for me since I had already installed those packages. Uninstalling and reinstalling didn't solve the issue as well. I just upgraded my system to Ubuntu 19.10 ...
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible