skip to Main Content

I’m experiencing some trouble installing pytype with pip install as shown here:

OS: CentOS 7

Python: Python 3.6

Pip: 20.0.2

$ pip3 install pytype
Collecting pytype
  Using cached pytype-2020.2.20.tar.gz (1.1 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/aeu1/venv/bin/python3 /home/aeu1/venv/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp34nr30o0
       cwd: /tmp/pip-install-z9y24cb4/pytype
  Complete output (7 lines):
  running egg_info
  writing pytype.egg-info/PKG-INFO
  writing dependency_links to pytype.egg-info/dependency_links.txt
  writing entry points to pytype.egg-info/entry_points.txt
  writing requirements to pytype.egg-info/requires.txt
  writing top-level names to pytype.egg-info/top_level.txt
  error: package directory 'find:' does not exist
  ----------------------------------------
ERROR: Command errored out with exit status 1: /home/aeu1/venv/bin/python3 /home/aeu1/venv/lib64/python3.6/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp34nr30o0 Check the logs for full command output.

3

Answers


  1. That package directory find: comes from setup.cfg; it’s actually not a package directory but an instruction for setuptools to find a list of subdirectories to install.

    I successfully installed the package for Python 2.7 and 3.5. So my advice is to upgrade pip and setuptools

    pip install -U pip setuptools
    

    and then retry pip install pytype.

    Login or Signup to reply.
  2. When I updated Python to version 3.9 then I was unable to install Pandas and NumPy in PyCharm which was giving me an error, ‘Command errored out with exit status 1’.

    The solution is to install an old version of Python 3.8.5 and use that as the interpreter.

    Login or Signup to reply.
  3. pip install -U pip setuptools

    It worked for python 2.7.You need upgrade pip and setuptools

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search