Python Forum
Pandas - error when running Pycharm, but works on cmd line
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas - error when running Pycharm, but works on cmd line
#2
You are using virtual environment pythonProject\venv doc venv.
PyCharm can make venv automatically.
To use same Python interpreter as you use cmd look at Configure a Python interpreter
Do this from cmd:
C:\>python -c "import sys; print(sys.executable)"
C:\python310\python.exe

C:\>pip -V
pip 22.0.4 from C:\Python310\lib\site-packages\pip (python 3.10) 
Then look at Setting the default interpreter in link,
here you point to first output in cmd so for me this is C:\python310\python.exe for you it can be different.
Then PyCharm will use this Python interpreter every time you create a new project.
zxcv101 likes this post
Reply


Messages In This Thread
RE: Pandas - error when running Pycharm, but works on cmd line - by snippsat - Jun-18-2022, 01:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  DF.groupby(col).min works, mean gets a "not implemented" error samgardner5 3 862 Feb-29-2024, 06:13 PM
Last Post: deanhystad
  error "cannot identify image file" part way through running hatflyer 0 857 Nov-02-2023, 11:45 PM
Last Post: hatflyer
  Pycharm error zuri 1 584 Nov-01-2023, 03:38 PM
Last Post: deanhystad
  Error when running kivy on python janeik 8 2,374 Jun-16-2023, 10:58 PM
Last Post: janeik
  pyarrow error when importing pandas sravva 1 1,119 Jun-06-2023, 05:09 PM
Last Post: snippsat
  File "<string>", line 19, in <module> error is related to what? Frankduc 9 12,960 Mar-09-2023, 07:22 AM
Last Post: LocklearSusan
Bug Works In Pycharm, Tons of problems after EXE chob_thomas 3 3,094 Dec-29-2022, 04:51 PM
Last Post: snippsat
  Getting error when running "MINUS" between 2 databases marlonbown 4 1,450 Nov-10-2022, 05:49 AM
Last Post: deanhystad
  line by line debugging in PyCharm Community astral_travel 2 1,210 Nov-03-2022, 08:33 PM
Last Post: astral_travel
  Error while running code on VSC maiya 4 4,119 Jul-01-2022, 02:51 PM
Last Post: maiya

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020