(PY) Upgrading pip and installing json package don't work

时间:2018-08-22 13:55:15

标签: python json pip pycharm install

Q1. I entered python -m pip install --upgrade pip and it answered that regularly worked. But, when I check it again by pip list, it was found that the version has been not changed. How can I solve this problem?

image description

Q2. pip install json also doens't work!

image description

This is PyCharm on Windows 8.1 K.

2 个答案:

答案 0 :(得分:0)

JSON是python标准库的一部分。

您不需要安装它,只需导入json

https://docs.python.org/3/library/json.html

答案 1 :(得分:0)

我终于解决了Q1的问题,方法是直接删除先前版本的点,然后再次安装其最新版本,如下所示。 :

\Lib\site-packages

Successfully installed pip-18.0