Big Data 5 min read

How to Switch Between Pyecharts V0.5 and V1 – Simple Commands and Tips

This guide explains why Pyecharts V0.5 and V1 are incompatible, shows how to upgrade from V0.5 to V1 or downgrade from V1 to V0.5 with pip commands, and highlights the need for additional map packages to render geographic charts correctly.

Python Crawling & Data Mining
Python Crawling & Data Mining
Python Crawling & Data Mining
How to Switch Between Pyecharts V0.5 and V1 – Simple Commands and Tips

Introduction

Pyecharts is a popular Python visualization library built on Echarts, combining Python's data‑processing strengths with interactive charting.

Background

There are two major, incompatible versions of Pyecharts: V0.5 and V1. Code written for one version will fail on the other, as illustrated by the error screenshots.

Switching Methods

From V0.5 to V1

Run the upgrade command: pip install -U pyecharts After upgrading, the library works with the newer API.

From V1 to V0.5

Install the older version and required map packages:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts==0.5.10
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts==0.5.10
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple echarts-countries-pypkg
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple echarts-china-provinces-pypkg
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple echarts-china-cities-pypkg
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple echarts-china-counties-pypkg
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple echarts-china-misc-pypkg
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple echarts-united-kingdom-pypkg
pip install pyecharts_snapshot

Without the map dependencies, charts render without geographic data; installing them restores proper map display.

Conclusion

The article provides straightforward commands to upgrade to Pyecharts V1 or downgrade to V0.5, noting that V0.5 is no longer maintained and recommending the latest version for new projects.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

version-managementPyechartspip
Python Crawling & Data Mining
Written by

Python Crawling & Data Mining

Life's short, I code in Python. This channel shares Python web crawling, data mining, analysis, processing, visualization, automated testing, DevOps, big data, AI, cloud computing, machine learning tools, resources, news, technical articles, tutorial videos and learning materials. Join us!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.