"UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83" appears when performing pip install on Win+Python 3.6.

Asked 2 years ago, Updated 2 years ago, 76 views

Run Environment:
Python 3, PyCharm
I re-entered Anaconda because I needed a library relationship.

PyCharm gets up when you run the code to cut out the acoustic feature according to the Readme.md of the machine-learned voice quality conversion scriptTry executing another code, but PyCharm will stand up.

I suddenly noticed that the association was PyCharm, so I changed it to Python.
I was able to run it, but I got the following error:

ModuleNotFoundError: No Module Named 'become_yukarin'

When I was looking at Python module descriptions, I noticed that the directory diagram

become_yukarin#Assume this directory can be used from outside

Is this relevant?Do I need to pass through this directory?I tried through the path, but the error result is the same.

Extract_acoustic_feature.py# Acoustic feature segmentation script, as far as PyCharm can see, the beginning part of

import numpy

from become_yukarin.acoustic_converter import AcousticConverter
from become_yukarin.config.config import create_from_json as create_config
from become_yukarin.data_struct import AcousticFeature
from become_yukarin.dataset.dataset import AcousticFeatureLoadProcess
from become_yukarin.dataset.dataset import AcousticFeatureProcess
from become_yukarin.dataset.dataset import AcousticFeatureSaveProcess
from become_yukarin.dataset.dataset import WaveFileLoadProcess
from become_yukarin.dataset.utility import MFCCAligner
from become_yukarin.param import AcousticFeatureParam
from become_yukarin.param import VoiceParam

It seems to be stuck in .The numpy should have entered with Anaconda, but it seems that it cannot be called.Also, it seems that the packaged script in that folder with became_yukarin at the beginning is not called.

That's why I thought it might stop because I threw up an error.

 -- --become_yukarin#Assume this directory can be used from outside
│   -- --_init__.py
│   -- -- config.py#Learning Configuration Parameters
│   -- --data_struct.py#defining data structure
│   -- --dataset
│   │ __ -- __init__.py
│   │ -- -- dataset.py #Data Processing
│   │ -- utility.py
│   -- -- model.py #NeuralNetworkStructure
│   -- -- param.py#voice parameters
│   -- -- Update on updater.py#chainer
│   ----voice_changer.py#Voice quality conversion using learned models
├-- recipe
│   -- --config.json#Learning Configuration Parameters
│   ----recipe.json#Parameters for Spinning Multiple Learnings
├-- requirements.txt#Dependent Libraries
├-- scripts
│   -- --extract_acoustic_feature.py #acoustic feature segmentation
│   -- -- launch.py #Spinning Multiple Learnings
│   -- --ln_apply_subset.py
│   -- --ln_atr503_to_subset.py
│   -- --ln_jnas_subset.py
├-- tests
│   -- --_init__.py
│   -- --test_dataset.py
└-- train.py#Learning Scripts

I thought about it by referring to Answer 1.

About Python Path,

When I started using Python, I didn't really understand the Path setting.
I want to import a module and use it, but I can't use it.I understood that Path didn't seem to pass, but I thought Path was Windows, so I changed the Windows settings.But it doesn't move...

Actually, I had a Path setting in Python's execution machine (lol).

Therefore, it seems that the user environment variable in Windows should be set to PYTHONPATH.

So I passed PYTHONPATH through become_yukarin and got the same error.

When I went through PYTHONPATH in the directory above become_yukarin, I was able to avoid the error that the package become_yukarin could not be found.

This time, I got an error saying that there is no chain.

Refer to
How to Install the Chainer in an Easy-to-understand manner|Mac Linux Windows
and refer to
I tried and found that the Chains are already installed.

 pip uninstall Chainer

Uninstalled the Chains in .
pip install chain
Reinstalled the Chains in .
The results remain the same.

After uninstalling Python and Anaconda, reseating Anaconda, and reinserting the chain, no errors occurred.

The association was Pycahrm, so I changed it.

There is an error saying librosa is missing.
pip install librosa
I put it in.

There was an error saying that pysptk was missing.
pip install pysptk
When I try to insert it in , I get a lot of red errors.
    
When performing pip install on Win+Python 3.6, "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83" was displayed. was used to correct it.Note: There was a change in the error message in the 2 lines comment out 4 lines, but it cannot be installed.

Reference
With the power of deep learning, I tried to have a voice related to the moon.
https://hiroshiba.github.io/blog/became-yuduki-yukari-with-deep-learning-power/

python windows machine-learning anaconda chainer

2022-09-30 20:19

1 Answers

I am the author of that repository.
become_yukarinYou must pass through the parent directory of the library.
Here are the details:

The file structure is probably like this.

become_yukarin (parent directory)
bbecome_yukarin (directory of modules)
 <_init__.py
 他Other
sscripts
 Various
Other

You must pass the path (PYTHONPATH, not the environment variable PATH) to the parent directory.
https://docs.python.jp/3/using/cmdline.html#envvar-PYTHONPATH

Python has documents in Japanese.I think it will be of some help.
https://docs.python.jp/3/using/


2022-09-30 20:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.