“pip install json” échoue sur Ubuntu

Ne peut pas installer le module json.
Pour autant que je sais que je ne devrais pas utiliser sudo. quelle est la question?

 pip install json
The directory '/home/snow/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/snow/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting json
  Downloading json-99.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-YkvqVh/json/setup.py", line 2, in <module>
        raise RuntimeError("Package 'json' must not be downloaded from pypi")
    RuntimeError: Package 'json' must not be downloaded from pypi

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-YkvqVh/json/
  • Ce n'est pas clair sur raise RuntimeError("Package 'json' must not be downloaded from pypi")?
  • Il devrait dire quelque chose comme "package est inutile" si c'est ce qui se passe. Si je me dit que j'ai besoin d'installer un paquet, et l'installateur me dit que je ne peux pas le télécharger à partir de X, une hypothèse raisonnable est que j'ai besoin de la télécharger à partir de quelque part d'autre. Mais où?
InformationsquelleAutor Eugenio | 2017-01-04