# Anaconda installed however it is trying to use python 3.10 that was previously installed

**URL:** <https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743>\
**Category:** Getting Started\
**Created:** [June 2, 2022, 5:49am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743 "2022-06-02T05:49:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Gardner](https://avatars.discourse-cdn.com/v4/letter/k/f5a800/32.png) [@Kevin\_Gardner](https://forum.anaconda.com/u/Kevin_Gardner)\
**Post date:** [June 2, 2022, 5:49am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/1 "2022-06-02T05:49:13Z")

</div>

I uninstalled and reinstalled anaconda. I still am having problems. I have installed python 3.10 on my computer c:\py310 folder prior to the anaconda install. Anaconda is now referencing this folder for modules and there is no reference to the anaconda installation which is running python 3.9. none of the applications work when clicked on the start menu in windows. the folder for anaconda is f:\anaconda\kev. All of the documentation says that I can keep python 3.10 but I can not get anaconda to work any ideas?

File “C:\Python310\lib\io.py”, line 54, in   
ImportError: cannot import name ‘text\_encoding’ from ‘io’ (unknown location) this is the trace back error.

---

<div class="post-metadata">

**Author:** ![ktsh.tanaka.2020](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/ktsh.tanaka.2020/32/1400_2.png) [@ktsh.tanaka.2020](https://forum.anaconda.com/u/ktsh.tanaka.2020)\
**Post date:** [June 2, 2022, 11:05am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/2 "2022-06-02T11:05:27Z")

</div>

from ktsh.tanaka.2020 to [Kevin\_Gardner](https://forum.anaconda.com/u/Kevin_Gardner)

A similar problem you encountered is in Stackoverflow.

> <https://stackoverflow.com/questions/37918215/using-python-with-anaconda-in-windows>

Windows thinks Python 3.10 you have installed is the correct Python.

Therefore, to resolve this issue, you must select both in the “Advanced Installation Option” during installation.

For more information, please refer to

> **[How to Install Anaconda on Windows? - GeeksforGeeks](https://www.geeksforgeeks.org/how-to-install-anaconda-on-windows/)**
>
> A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

Regards you.  
ktsh.tanaka.2020

---

<div class="post-metadata">

**Author:** ![CrystalS](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/crystals/32/569_2.png) [@CrystalS](https://forum.anaconda.com/u/CrystalS)\
**Post date:** [June 2, 2022, 7:40pm UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/3 "2022-06-02T19:40:53Z")

</div>

@Kevin_Gardner What exactly happens when you open the Anaconda Prompt? I would expect a command prompt window to open with the base Anaconda environment to be activated.

---

<div class="post-metadata">

**Author:** ![Kevin\_Gardner](https://avatars.discourse-cdn.com/v4/letter/k/f5a800/32.png) [@Kevin\_Gardner](https://forum.anaconda.com/u/Kevin_Gardner)\
**Post date:** [June 3, 2022, 2:16am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/4 "2022-06-03T02:16:34Z")

</div>

Hi, I get the cannot find module import error. And it does not connect to anything in the anaconda folder. Basically, nothing works even though it is installed. To get around this problem in windows. I installed anaconda in linux/Ubuntu. I am running it in wsl.

---

<div class="post-metadata">

**Author:** ![Kevin\_Gardner](https://avatars.discourse-cdn.com/v4/letter/k/f5a800/32.png) [@Kevin\_Gardner](https://forum.anaconda.com/u/Kevin_Gardner)\
**Post date:** [June 3, 2022, 3:00am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/5 "2022-06-03T03:00:08Z")

</div>

First of all, thank you for your help. I uninstalled and then reinstalled anaconda like you said. I am still getting the same error. So, I decided to install anaconda in Linux using wsl and it works. I still don’t know why I could not get the windows installation to work.

Regards,

Kevin

 ![2584745B32374933AB2DEFA78A9CFFA5.png](https://europe1.discourse-cdn.com/anaconda/original/2X/f/f00d9769568e9c4c43a078e2adc703298ec8e1ea.png)

---

<div class="post-metadata">

**Author:** ![ktsh.tanaka.2020](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/ktsh.tanaka.2020/32/1400_2.png) [@ktsh.tanaka.2020](https://forum.anaconda.com/u/ktsh.tanaka.2020)\
**Post date:** [June 3, 2022, 3:17am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/6 "2022-06-03T03:17:32Z")

</div>

from ktsh.tanaka.2020 to [Kevin\_Gardner](https://forum.anaconda.com/u/Kevin_Gardner)

hello,  
I think the cause is that the Python Path on Windows refers to Python 3.10.

As it is also.

> **[Understanding the Python Path Environment Variable in Python \[Updated\]](https://www.simplilearn.com/tutorials/python-tutorial/python-path)**
>
> Python path is an environment variable used to maintain directories of custom Python libraries. Learn how to set a python path variable on Windows and Mac now!

If PYTHONPATH refers to Python in Anaconda, it works normally both from the command line and from Jupyter. However, in this case, the previously installed Python will not work.

To make both coexist, yes, it’s good to use WSL. Also, virtual box  
[https://www.virtualbox.org/](https://www.virtualbox.org/)  
You can also use to boot multiple operating systems.

Regards, you  
ktsh.tanaka.2020

---

<div class="post-metadata">

**Author:** ![Kevin\_Gardner](https://avatars.discourse-cdn.com/v4/letter/k/f5a800/32.png) [@Kevin\_Gardner](https://forum.anaconda.com/u/Kevin_Gardner)\
**Post date:** [June 3, 2022, 3:35am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/7 "2022-06-03T03:35:27Z")

</div>

The terminal opens and I get the import error. It is trying to use my python 3.10 install. I replied to you as well via email. I installed anaconda in wsl using ubuntu and this works. I am totally confused as to why I can’t get it to work in windows.  
thanks again for your help,  
kevin

---

<div class="post-metadata">

**Author:** ![ktsh.tanaka.2020](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/ktsh.tanaka.2020/32/1400_2.png) [@ktsh.tanaka.2020](https://forum.anaconda.com/u/ktsh.tanaka.2020)\
**Post date:** [June 3, 2022, 6:15am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/8 "2022-06-03T06:15:35Z")

</div>

from ktsh.tanaka.2020 to [Kevin\_Gardner](https://forum.anaconda.com/u/Kevin_Gardner)

Thank you for your frequent replies.  
I think the reason Anaconda doesn’t work well on your PC’s Windows is because of a PYTHONPATH conflict.

This is because PYTHONPATH has been set on the Python3.10 side, and even if Anaconda starts, it is trying to retrieve files such as site packages from there.

Let’s make the problem a little more specific. In the case of WSL, bash is used, so PYTHONPATH is  
export PATH = “/ home / kevin / anaconda3 / bin: $ PATH”  
It works correctly because it is set by.

However, in the case of Windows, I think this is because it indicates Python installed on Windows, as shown in.

[windows Environment variable](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.amazonaws.com%2F0%2F197109%2F683f6407-2f73-15c1-4f89-68a179332003.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&w=1400&fit=max&s=ee49e1f27eaa5c7d0e95ce299f685566)

To avoid this problem, you have to switch environment variables every time you use Anaconda, which is currently difficult due to the Windows specification.

In other words, I think that it is correct for now to run Anaconda by running another OS on Windows using WSL or VirtualBOX.

In my case, when Anaconda and Python coexist on Windows, I use VirtualBOX and Anaconda installed on Ubuntu or Fedora.

I wrote it for a long time. sorry.

Regards, you.  
ktsh.tanaka.2020

---

<div class="post-metadata">

**Author:** ![CrystalS](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/crystals/32/569_2.png) [@CrystalS](https://forum.anaconda.com/u/CrystalS)\
**Post date:** [June 3, 2022, 4:28pm UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/9 "2022-06-03T16:28:13Z")

</div>

Yeah, I agree with @ktsh.tanaka.2020 - it is probably either that your PYTHONPATH is set to the other installation - or it is set to the other installation in your windows registry. So, even with anaconda installed, even with the Anaconda Prompt - that other installation is taking preference.  
I’m glad to hear you do have it working with WSL!

---

<div class="post-metadata">

**Author:** ![ernezcatovic](https://avatars.discourse-cdn.com/v4/letter/e/0075a9/32.png) [@ernezcatovic](https://forum.anaconda.com/u/ernezcatovic)\
**Post date:** [August 14, 2024, 11:22am UTC](https://forum.anaconda.com/t/anaconda-installed-however-it-is-trying-to-use-python-3-10-that-was-previously-installed/23743/10 "2024-08-14T11:22:38Z")

</div>

This worked for me. Thanks a lot.
