Current location - Health Preservation Learning Network - Slimming men and women - Jupyter could not find mpl_finance.
Jupyter could not find mpl_finance.
Jupyter could not find mpl_finance. The solution is as follows:

This string of codes is the code of the online bosses when I participated in the epidemic identification emotional contest. Ai Xiaobai encountered many problems at the beginning of running the program, mainly the import of some packages. I have encountered many similar problems before. Now sort out the problems and solutions.

Import operating system

Import system

sys . path . append(' d:\ \ anaconda \ \ lib \ \ site-packages ')

Import pandas as pd

Import numpy as np.

Import hierarchical folders from sklearn.model_selection.

Import TQM from TQM

Import tensor stream as tf

Import tensorflow.keras.backend as k.

Import from tensorflow.keras.utils to _ categorical

From transformer inlet *

Print (tf. _ _ Version _ _)

Question 1: Modify the default open directory of jupyter.

First of all, I have to adjust the root directory opened by jupyter, because by default it's all disk C. My disk C is about to burst, so I adjust it, but I can only adjust it every time I come in. At present, we haven't found a way to completely change the root directory, but we can also give you a reference:

Type md and enter the location to modify. I entered e directly:

Enter jupyter notebook

This completes the handover.

Problem jupyter in anaconda cannot import the installed pandas module.

Then there was a problem when running this program. There is nothing wrong with importing panda into drive C, but it will be wrong after modification, so I searched the solution again, because I may not find your Pandora path if I change my location. Solution:

Import system

sys . path . append(' d:\ \ anaconda \ \ lib \ \ site-packages ')

Import pandas as pd

Just add two sentences to import panda as pd, and the path of append is where you put panda. Jupyter notebook doesn't know where the path of the module is. By default, it only knows the current path. You can check it in cmd first:

Pipixiu-wordy panda

Question 3: to _ categorical cannot be found in tensorflow.

Then there is something wrong with tensorflow's sentence. Karas. Utilis is imported into _ Categorical, because I entered from TensorFlow. Python。 Karas. When Utilis first imported to _ Categorical, it should be said that there is no python kernel installed in my TensorFlow, but I installed Keras in conda, so there is no problem with this sentence.

Question 4: Modulenotfounderror: There is no module named "transformers".

Then the next module will do.

In anaconda navigator, click terminal under the green arrow to the right of base, and then type pip install transformers. I started downloading Kangda and installing Transformers at anaconda's prompt, but this failed, and it was still too white.

The solution of full plate C.

Because drive C was particularly full when downloading tensorflow, it finally showed that there was no space to install it, and then I didn't know which drive C could be deleted, so I used computer housekeeper software. After entering:

Click on the toolbox on the left

Look for software to move this toolkit.

Select the software and large files to be moved to drive C, and select the disk to be removed. I chose D, and it's better to create a new folder "C2Dfile" for this disk, so that it won't be confused with other files, and then you can slim down your C disk without deleting any files.