Pip install pickle does not work - there is no such file or directory

Ubuntu 16.04 LTS trying to install cpickle with pip. I searched a bit until I found nothing useful.

PYTHONPATH is not installed.

Error message

user@hostname:~$ sudo -H pip3 install cpickle
Collecting cpickle
  Using cached cpickle-0.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.5/tokenize.py", line 454, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-wn926hef/cpickle/setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wn926hef/cpickle/
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-q46tq1l8/cpickle/
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

troubleshooting steps

# version info
user@hostname:~$ python --version
Python 2.7.12
user@hostname:~$ python3 --version
Python 3.5.2

# I don't think cache is the problem
rm -rf ~/.cache/
sudo -H pip install  cpickle --no-cache-dir # same problem
sudo -H pip3 install  cpickle --no-cache-dir # same problem
+4
source share
2 answers

Check on interweb, I found this

enter image description here

The generic template in Python 2.x must have one module version, implemented in pure Python, with an optional accelerated version, implemented as an extension of C; e.g. pickle and cPickle.

Python . Python 3.0 Python.

, Python. pickle/cPickle . 3.1. StringIO io.

, Python3 ...

import _pickle as cPickle
+9

cPickle Python; pip. Python 2 Python. Python 3 :

Python 2.x , Python, , C; , pickle cPickle. Python . Python 3.0 Python. , Python. pickle/cPickle .

cPickle pip Pythonista , , cPickle ( , ) setup.py, , "Package 'cpickle' must not be downloaded from pypi". , , - , , PyPI, - , , . , , , , .

+1

Source: https://habr.com/ru/post/1675376/


All Articles