first off let me state I am not a programmer. My knowledge of programming is occasionally using R to help with data at my job. Recently I have been attempting to use python in order to automate several ArcGIS functions. I have been introducing myself to python and arcpy through different tutorials and I see t…
Tag: pycharm
Pycharm is generating language errors for Python version 3.6 although interpreter is 3.9
The language interpreter is set to a Python 3.9 version: But a Python scratch file is being parsed by some kind of 3.6 interpreter: Note that I created in two different scratch files and the same error occurs. Why would this happen and is there a workaround [short of creating an entirely new project from scra…
How to change the default backend in matplotlib from ‘QtAgg’ to ‘Qt5Agg’ in Pycharm?
Qt5Agg is necessary to use the mayavi 3D visualization package. I have installed PyQt5 and mayavi using pip in a separate copied conda environment. The default backend then changes from TkAgg to QtAgg. This is a bit weird because in an earlier installation in a different PC the default changed directly to Qt5…
import cv2 not working in vscode but working in pycharm
I got import cv2 to work on pycharm but for some reason it does not work on my visual studio code despite doing the same thing I did with pycharm which was to pip install opencv-contrib-python on a virtual enviroment. I created a virtual enviroment in vscode and the file is part of my project file and I selec…
How to add Python Interpreter to PyCharm?
I followed a lot suggestions to add the interpreter to PyCharm, but they’re simply not working. I want to figure out what the exact problem is here. First, it said no interpreter is found, so I tried using Python 3.10 in Anaconda. But it seems “pip install packages” don’t get used for …
TensorFlow (any version > 2.5.0) on M1 Mac: No code completion in PyCharm
I am using JetBrain’s PyCharm IDE to work with TensorFlow on a M1 Mac machine. I have installed TensorFlow using the following commands in the given order: For installing Conda, I followed Apple’s official documentation I can import TensorFlow without problems; the version number it prints is 2.8.…
Use a different fixed type for interfaces defined in the base class for subclasses
I have a BaseList container that takes BaseItem’s as items. I then derive a new list CustomList and I want it to hold CustomItem’s. How to I type methods in BaseList many methods to accept BaseItem. And also tell it to use CustomItem the derived list CustomList? Here is the code I have so far: Que…
Installing wxPython on Windows: DistutilsPlatformError: Microsoft Visual C++ 14.2 or greater is required
I have installed: Python 3.10.1 PyCharm Community 2021.3 Visual Studio Build Tools 2022, including: C++ Build Tools Core Features C++ 2022 Redistributable Update C++ core desktop features MSVC v143 – VS 2022 C++ x64/x86 build tools (Latest) Windows 10 SDK (10.0.19041.0) C++ CMake tools for Windows Testi…
How to Scrape Google’s quick answer box?
I want to scrape quick answer box of google(e.g., the selected text): I’ve checked other questions asked on the website regarding the same but that didn’t help. How can I do that ? Answer I think this might help you , have given gold rate in search
How to debug backwards in PyCharm?
We all know F9 goes forward in debug mode. But how can we go backward after going a couple steps forward with F9 or is that even possible? Answer how can we go backward after going a couple steps forward with F9 or is that possible? It isn’t possible, you can’t “go back” during debuggi…