Help Center/
MapReduce Service/
User Guide (Paris Region)/
Interconnecting Jupyter Notebook with MRS Using Custom Python/
FAQs
Updated on 2024-10-11 GMT+08:00
FAQs
Question
When I import pandas from a local path, the following alarm is generated:
Procedure
- Run the python -m pip install backports.lzma command to install the LZMA module.
- Go to the /usr/local/python3/lib/python3.6 directory and edit the lzma.py file. The directory varies depending on hosts. You can run the which command to query the directory used by Python.
Change
from _lzma import * from _lzma import _encode_filter_properties, _decode_filter_properties
To
try: from _lzma import * from _lzma import _encode_filter_properties, _decode_filter_properties except ImportError: from backports.lzma import * from backports.lzma import _encode_filter_properties, _decode_filter_properties
Before modification
After modification
- Save the file and exit. Then, import pandas again.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot