Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'No python at' error preventing anything from running - python pycharm

Tags:

python

pycharm

I had been using a 32bit version of python on my 64bit system so changed to the 64 bit version. Ever since I have getting the following error when trying to run anything:

No Python at 'C:\Users\User\AppData\Local\Programs\Python\Python37-32\python.exe'

I've tried uninstalling python and pycharm, then reinstalling but to no avail.

Python is installed to 'C:\Users\User\AppData\Local\Programs\Python\Python37', not \Python37-32 but I've not been able to figure out how to change this.

Any help would be greatly appreciated

like image 779
Blueberry Avatar asked Feb 03 '26 07:02

Blueberry


2 Answers

You can first find the location of your "python.exe" file, then copy that

Next you have to edit the "pyvenv.cfg" file and paste the location of your python.exe file on the "home =" spot

like image 134
pelaajahacks Avatar answered Feb 05 '26 22:02

pelaajahacks


Easy solution:

you have to make sure you have Requirements.txt file .

Next , delete your old environment folder example 'env', "venv" or what ever you called it.

then run the following commands:

pip install virtualenv

Python 2:

$ virtualenv env

Python 3

$ python3 -m venv env

Active your virtual environment by doing:

For windows

env\Scripts\activate

Next Do:

pip install -r Requirements.txt

There you have it, it should work....

like image 28
Randall Moore Avatar answered Feb 05 '26 20:02

Randall Moore