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

11,422

Solution 1

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

Solution 2

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....

Share:
11,422
Blueberry
Author by

Blueberry

Updated on June 27, 2022

Comments

  • Blueberry
    Blueberry about 2 years

    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