Solving the conflict between ANACONDAS3 and IBUs under Linux-fedora25

Source: Internet
Author: User

Problem: When we install ANACONDAS3, we will find that Ibus-setup is not going in.

Reason:

is because Ibus-setup python should use Python2.

And when we install ANACONDAS3, calling Python will default to Python3 (in Linux logic, input python defaults to Python2, input python3 is Python3)

Ibus-setup's main program requires Python2 's GI module, and the Python3 that the Anacondas is installed on will appear in conflict

So you might see an error like this:

Traceback (most recent):
File "/usr/share/ibus/setup/main.py", line-in <module>
From GI import require_version as Gi_require_version
Importerror:cannot import name ' Require_version '

In short: is the silly ANACONDAS3 the default version of Python to change the problem!

Solution:

First step: Disable the ANACONDAS3

sudo chmod 000/home/chenyansu/anaconda3/(you should use your directory here)

Step two: Set Ibus-setup to the fullest

The third step: if you want to use ANCONDAS3, and then change the authority back, of course, after doing so ibus-setup and paralyzed.

sudo chmod 775/home/chenyansu/anaconda3

Add:

1. Why not just change ANACONDAS3 's silly mistake of path?

A: Who knows what a more foolish mistake it would have if he had changed back to ANACONDAS3?

2. In theory, the Python problem caused by ANACONDAS3 can be saved by this method

Solving the conflict between ANACONDAS3 and IBUs under Linux-fedora25

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.