Questions tagged [pycharm]
Pycharm is an IDE (written in java) for developing in Python, with support for web frameworks.
154
questions
0
votes
0
answers
17
views
Files removed after Restore Defaults setting [closed]
My files and all configurations are removed after I clicked 'restore defaults' setting. Can I somehow recover them? I do not see them in Local History
0
votes
0
answers
20
views
does installing Flask python package within PyCharm create duplicate entries on my hard drive?
This is basically a question on how Install really works with Pip and Python, i.e. what physically happens when you "Install a package"
I assume when I use pip to install flask from my ...
0
votes
1
answer
355
views
How to install python packages in an unstable connection
I've been trying to install tensorflow but without success. I suspect the reason is unstable internet connection because I was able to successfully install a smaller package (openCV) minutes before ...
0
votes
1
answer
126
views
JetBrains Gateway - cannot connect to remote host
I am trying to connect to my local remote host with JetBrains PyCharm / JetBrains Gateway, but when while loading remote instance it just exits without giving a reason why it could not connect. On ...
0
votes
0
answers
50
views
Pycharm's top is cut off in i3wm
I recently installed i3 (without a desktop environment) and everything is working fine except for Pycharm. The top border seems to be cut off, since it is lower and doesn't have rounded corners.
...
0
votes
0
answers
110
views
pycharm does not recognize python3.10
I had installed python 3.11 and pycharm. I could not get pygame to load. There is an incapability issue right now. I removed 3.11 and pycharm and reloaded python 3.10 and then pycharm. Pycharm ...
1
vote
1
answer
741
views
Change color of PowerShell 7 Get-ChildItem result
I am using PowerShell 7 as terminal in PyCharm and the default colors for the commands were not really clear.
I created a profile.ps1 where I set them in this way:
# Set colours
Set-PSReadLineOption -...
0
votes
1
answer
749
views
How can I get a tree view for large JSON files in PyCharm?
When I open a small JSON file in PyCharm, I can easily collapse or expand its sections (note the medal-shaped symbols on the left):
However, when I open a large JSON file, this isn't possible anymore ...
0
votes
0
answers
38
views
New Scientific Project in PyCharm
When creating a new scientific project in PyCharm, the default option to the Python interpreter is a fresh Conda environment:
Is it ok to change it to Virtualenv instead? Or will i face any kind of ...
0
votes
0
answers
84
views
Avoid Antivirus AVG using too much CPU to check a Python script
I am currently developing a Python script that performs some http requests and uses a webdriver. When I run the script from Pycharm, AVG starts performing some sort of scanning that reduces the ...
0
votes
0
answers
736
views
My saved .py files can be seen in Pycharm but not in File Explorer
I already saved one file before. But when I do it now, it doesn't show in file explorer but shows in Pycharm "open" section. Any explanation and a way to fix this would be appreciated.
2
votes
1
answer
4k
views
Pip error - Cannot open include file: 'basetsd.h': No such file or directory
[SOLVED] Answer in comments!
I am trying to install these requirements
(jaydebeapi==1.2.3) in Python and facing the issue bellow.
The main message of error is: "Cannot open include file: 'basetsd....
0
votes
2
answers
2k
views
PyCharm terminal does not use venv, but "Python Console" does
In PyCharm, I have created a new Python project with its own venv environment.
But, for some reason, executing pip install ... in PyCharm's terminal uses the systemwide Python installation instead of ...
0
votes
1
answer
311
views
Slow ping while using ssh on a server in another continent
So I am coding (using pycharm) connected via ssh to a server which is in another continent and the ping is very high. Because of that, everything that I do takes a lot of time.
Is there anything that ...
0
votes
1
answer
105
views
Match Case option missing in Pycharm search
I have been using Pycharm for some time now and noticed that in the current version I am using (Community 2021.1.1) the Match Case tickbox is missing (probably is hidden).
I found it really useful ...
4
votes
0
answers
660
views
How can I disable the scroll-to-end feature
Whenever I run my code in Pycharm (community version), the run window automatically scrolls to the end. I would like to turn this feature off. However, everytime I run my code it re-enables itself.
I'...
0
votes
1
answer
43
views
PyCharm: Replace in Files not showing Replacement String in Find Window
In older versions of Pycharm, if you did a Replace in Files on your entire project, you could open the results in the Find Window and then for each result double check that the replacement made sense. ...
1
vote
1
answer
4k
views
“Select Python Interpreter” button not showing (Pycharm)
In one of my PyCharm projects, it doesn't show the "Select Python interpreter" button on the lower right-hand side. Here is how it's supposed to be:
However, it's not there. I need it to ...
2
votes
1
answer
414
views
how to restore all windows when open JetBrains IDE again
I usually use one JetBrains IDE window for one folder(project).
I need to shut down the computer every day.
Is there any way to restore all closed windows when I continue the work the next day?
I am ...
2
votes
2
answers
927
views
The option on PyCharm Mac "Reveal in Finderl" what is in PyCharm for Windows
I am learning Python watching tutorials of Mosh. There he shows an option to add a xl file on pychram project using the option "Reveal in Finder" but I can't find it on my windows machine ...
0
votes
3
answers
997
views
ssh -X: Remote application should open hyperlinks in the local browser
I use ssh -X to execute a GUI on a remote machine.
This works great, except for one thing:
If I click on a hyperlink in the application, then a browser gets launched on the remote machine.
In my case ...
1
vote
0
answers
234
views
Is it possible to recover a file via PyCharm (jetbrains) localhistory binaries?
I lost a number of files due to a destructive bug in GitHub Desktop and I’m trying to figure out what my best chances are for recovering one of them that was especially important.
I have located the ...
0
votes
1
answer
484
views
Pycharm puts red lines on valid annotations in python3.7
When adding type hints to my python3.7 code. I often don't import the actual classes to avoid circular dependencies. Instead I use
from __future__ import annotations
to let them be converted to ...
0
votes
2
answers
437
views
How to mark folders with color in Pycharm
I want to mark specific folders with color. For example folder which is finished should be marked with green color, not finished red and etc. I want them to work same as "mark directory as" ...
-1
votes
1
answer
221
views
Building a program in Pycharm for Ubuntu. How can I do it so that Ubuntu automatically opens Pycharm and Starts the Python Program?
First, I want Ubuntu to boot straight into the Desktop and automatically open Pycharm IDE. Then, I want it to automatically run the Pycharm Program left open or last worked on. Lastly, without me ...
1
vote
1
answer
1k
views
IntelliJ IDEA or Pycharm not opening on Alpine Linux
So I am trying to migrate to Alpine Linux; however, I cannot seem to install two IDEs, Pycharm and IntelliJ IDEA.
They are both throwing me the same error whenever I attempt to run either pycharm.sh ...
0
votes
1
answer
4k
views
pynput is installed with pip, but `import pynput` in PyCharm can't find it
I installed the pynput Python package with pip. I got this error in PyCharm when trying to import pynput with import pynput.
C:\Users\User\PycharmProjects\keyloger.py\Scripts\python.exe "C:/Users/...
0
votes
1
answer
1k
views
Pycharm doesn't detect python installed from Microsoft store
I have python 3.7 installed on my pc downloaded from python's official website and pycharm detects it and is fine. But, windows's powershell doesn't detect it. I have added it to path of system and ...
1
vote
0
answers
117
views
Create a new ipynb file not found
I am trying to use Pycharm to create A Jupyter Notebook using Pycharm. But such option is not found in the list, as I see in many tutorials.
How I can create a ipynb file in PyCharm ?
0
votes
1
answer
181
views
Why I can't start pycharm 2019.3.1 on ubuntu?
First, I downloaded pycharm using snap, and I edited the pycharm64.vmoptions file. Then I wasn't able to launch the software, so I uninstalled it.
After that, I downloaded the pycharm.tar.gz file ...
1
vote
1
answer
531
views
Pycharm no longer prompts me to open in "this window" or "new window"
How do I re-enable this prompt?
It is something that I found quite useful and somehow managed to accidentally disable.
1
vote
0
answers
30
views
Pycharm 2019.3 cannot auto discover suitable virtualenv?
Before 2019.3, pycharm can auto discover suitable virutalenv and automaticlly set for the project.
For example, when I created a project named "sample", it will automatically use virtaulenv named "...
3
votes
2
answers
12k
views
Is there a way to unite WSL2 Ubuntu, Tensorflow-GPU, CUDA, and Pycharm[windows]?
I have a WSL 2 Ubuntu with Anaconda 3 installed in Ubuntu WSL 2.
Then I installed PyCharm in Windows 10.
Then I created an environment for tensorflow-gpu in WSL2.
I installed CUDA and cuDNN in Windows ...
0
votes
0
answers
708
views
Pycharm can't import pygame - versions not compatible?
I get the error: No module named 'pygame'
when trying to import pygame in my project in pycharm.
Now I'm trying to troubleshoot, and I wanted to ask whether these versions might be uncompatible. ...
0
votes
1
answer
129
views
PyCharm cant choose a system interpreter
I am trying to make a system interpreter and then linking a library that is in the same folder as my main.py file. When I try to make the system interpreter it just says "" and then when I click on it ...
1
vote
0
answers
23
views
Pycharm isn't working properly [closed]
my pycharm isnt working properly, It doesn't highlight any syntax, doesn't show suggestion even doesn't change color of comments, Please tell me how to fix this.
enter image description here
4
votes
2
answers
9k
views
Can't install anything on pip
Everytime I try to install anything on pip it ends with following error message.
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, ...
3
votes
2
answers
2k
views
Can I change the directory for scratch files in PyCharm?
The default directory is %HOMEPATH%\.<product><version>\config\scratches.
It's not so easy to use.
So can I change it to other directories as C:\scratches?
If so, I can open a REPL and ...
1
vote
1
answer
285
views
tkinter doesnt work for me on anything
This is the code that I tried.
import tkinter as tk
root = tk.TK()
root.mainloop()
I tried using pycharm and sublime text. Pycharm wont show the blue letters on ".TK", "mainloop" and sublime text ...
5
votes
1
answer
3k
views
My Pycharm IDE cannot connect debugger
My Pycharm IDE cannot connect debugger in one of my anaconda environment. As I try to debug some code it says:
Connection to Python debugger failed Socket operation on nonsocket: configureBlocking
the ...
0
votes
0
answers
2k
views
MacOS Mojave | PyCharm Is not allowed to access to the camera
I am trying to execute the following code:
import cv2
video_capture = cv2.VideoCapture(0)
print('Camera initialized')
ret, raw_frame = video_capture.read()
video_capture.release()
print('Bye!')
...
0
votes
1
answer
36
views
Pycharms module successfully downloaded but not found
I've gone through just about every post on this topic and none of the solutions have worked thus far.
I recently made the mistake of trying to switch python versions and my project in pycharms went ...
0
votes
1
answer
1k
views
Changing the commit author for Git/Github on Windows 10
Problem:
I cant get the correct username to show up for commits on github.
Background:
I first had a Github account for personal use that was just to mess around and become familiar with it. Now I'...
0
votes
1
answer
599
views
PyCharm (or python) is not working correctly on my Windows machine (?) - can't do anything under virtualenv (or I'm doing it wrong)?
So basically I use Pycharm 2019.2.1 with Python 3.7.4 (I tried reinstalling both if you ask me) and I can't use pip in virtualenv. I tried even calling it with python -m pip install -r requirements....
1
vote
0
answers
39
views
Run Django cause Pycharm behave unexpectedly
After running python manage.py runserver in terminal, PyCharm behave unexpectedly. Code analysis stop working and after restart PyCharm it hangs and only compute reboot fix issue.
PyCharm ...
1
vote
1
answer
497
views
PyCharm Professional: How to use an interpreter, running in a docker container on a second machine
Setup:
1st machine (client): Windows with PyCharm Professional installed. Laptop, no GPU.
2nd machine (server): Ubuntu with docker installed. Workstation with GPU.
3rd machine (docker container): ...
8
votes
1
answer
3k
views
Pycharm debugger does not work with pytorch and deep learning
This question is somewhere in between Stackoverflow and Superuser - in my opinion at least, so feel free to point me to SO if this is the wrong place (in your opinion ;)).
Problem:
If I place a ...
0
votes
1
answer
887
views
Git prepare-commit-msg hook seems not work in PyCharm
I am working with the last version of PyCharm. In our repo we have some hooks, like "prepare-commit-msg" to create a commit template or "commit-msg" using by Gerrit to add the change-id used by this ...
1
vote
1
answer
921
views
Why can't I install any packages on Pycharm?
These are the three main resources I've been mainly using to try to either use the Google Sheets API or manipulate an excel spreadsheet on Pycharm:
https://www.youtube.com/watch?v=cnPlKLEGR7E&t=...
0
votes
1
answer
303
views
Volume bindings not detected in Pycharm when deploying scripts via Docker interpreter
I have volume binding set up mapping a few different paths to my Docker container.
I have Docker plugin set up in Pycharm Pro and the container's interpreter set as my Python interpreter. I can deploy ...