# Ansible version upgrade to 3.0.0 error

**URL:** <https://forum.ansible.com/t/ansible-version-upgrade-to-3-0-0-error/37510>\
**Category:** Ansible Project\
**Created:** [December 30, 2022, 2:44am UTC](https://forum.ansible.com/t/ansible-version-upgrade-to-3-0-0-error/37510 "2022-12-30T02:44:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivaraman](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Sivaraman](https://forum.ansible.com/u/Sivaraman)\
**Post date:** [December 30, 2022, 2:44am UTC](https://forum.ansible.com/t/ansible-version-upgrade-to-3-0-0-error/37510/1 "2022-12-30T02:44:10Z")

</div>

Hi Team,

I am getting below error while installing the ansible version 3.0.0.

Trackback (most recent call last):  
File “/usr/bin/ansible”. line 47, in   
from ansible.utils.unicode import to\_unicode  
ImportError: cannot Import name to\_unicode

My python version is: 2.7.5

Please help upgrading the latest ansible version.

Thanks,  
Siva

---

<div class="post-metadata">

**Author:** ![Nico\_Kadel-Garcia](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nico_kadel-garcia/32/9998_2.png) [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Post date:** [December 30, 2022, 5:51am UTC](https://forum.ansible.com/t/ansible-version-upgrade-to-3-0-0-error/37510/2 "2022-12-30T05:51:12Z")

</div>

> Hi Team,
> 
> I am getting below error while installing the ansible version 3.0.0.
> 
> Trackback (most recent call last):  
> &nbsp;&nbsp;File "/usr/bin/ansible". line 47, in \<module\>  
> &nbsp;&nbsp;from ansible.utils.unicode import to\_unicode  
> ImportError: cannot Import name to\_unicode

Stop \*right\* there. More contemporary versions of the basically  
misnamed tarball called "ansible" have a dependency on "ansible-core",  
which they will try to install first. But both the latest ansible and  
ansible-core are not compatible with python 2 on the ansible server,  
and actually require python 3.9 or later for the most recent releases.  
Use python 3, ideally python 3.9, and install ansible-core first to  
keep your dependencies clean.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pip3 install ansible-core --user --upgrade

And if you really want hundreds of Megabytes of material you're quite  
unlikely to use:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pip3 install ansible --user --upgrade

If your python3 is less than python 3.9, that won't get you the latest  
versions, but it should get you something usable. If your OS is so old  
it lacks python3..... you've got other issues.

That should get you started. If you need to install this stuff as the  
root user, to lock it down, do follow up with the name of your  
operating system. There may be a more recent package already available  
for you to install.

Nico Kadel-Garcia
