Cannot run arcpy in Pycharm after pro 2.8.2 update.

619
2
10-07-2021 01:02 PM
JeremiahJones
New Contributor II

I cannot get Pycharm to run any scripts with arcpy in them. I get the following error:

JeremiahJones_0-1633636784775.png

And a list of instructions to follow (which don't seem to work either). The issue is that when this happens I usually just go into pro, delete the cloned environment, then clone default again and install the few packages that I need in the conda env to run my scripts. But that doesn't seem to be working.

Tags (3)
0 Kudos
2 Replies
by Anonymous User
Not applicable

Try rebuilding the indexes within PyCharm.  I think you can right click on the lower right corner where it list your current interpreter and choose rebuild index or repoint the interpreter to the cloned environment.  Could be a cache somewhere that’s causing the problem.

0 Kudos
JeremiahJones
New Contributor II

I've tried creating a new Virtual Env, and set it to the new cloned interpreter and I am still running into the same issue. I have even uninstalled pycharm and re-installed it and tried with a clean slate. I don't understand how the working environment version can be higher than the cloned environment.

0 Kudos