cx_Oracle import error after changing window account name.

Asked 2 years ago, Updated 2 years ago, 91 views

The blue square is the name of the account before the change The orange square is the account name after the change.

The name of the Windows account is in Korean It's a problem that occurred after you changed it to English.

cx_Oracle couldn't be imported I checked and it came out with a capture.

I fully expected that it would be a lot of trouble if I changed my Windows account name. I'm still suffering enough from reinstalling this and that

I don't know where the cx_Oracle is installed and it's impossible to uninstall. How can I uninstall the existing cx_Oracle and install it anew...?ㅜ

python oracledb pip3

2022-09-20 17:41

1 Answers

Just to guess, the PATH environment variable is probably misaligned with Python's path, which was installed when it was the previous account name. Try uninstalling python under the previous account name (maybe you have), or if you have already uninstalled it, blow up the folder.

You can edit the environment variable PATH variable well to remove the path of the Python you previously installed.

When installing Python, the PATH environment variable is automatically set, and if you install multiple versions of Python while setting the environment variable, it seems that global Python will be twisted. I personally install the PATH environment variable without setting it, create a virtual environment with venv, virtualenv, etc., and activate the virtual environment. It's much better if you get used to it.

If something goes wrong with the package installation in a virtual environment, you can just blow up the folder (in case of conda, there is a command to delete it). You can recreate it and restart the package installation from the beginning.


2022-09-20 17:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.