Skip to content

pip doen't install numpy as prerequist #25373

Closed
@Dremor

Description

@Dremor

Code Sample, a copy-pastable example if possible

./env/bin/pip install --upgrade pandas

Problem description

Installing Pandas in a Python2 VirtualEnv, install fails as Numpy cannot be locally found.

Expected Output

Pandas install in the VirtuaEnv

Output of ./env/bin/pip install --upgrade pandas

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pandas
  Using cached https://files.pythonhosted.org/packages/81/fdb1f17f7dc914047cd1df9d6813b944ee446973baafe8106e4458bfb68884/pandas-0.24.1.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-install-WhPCxJ/pandas/setup.py", line 732, in <module>
        ext_modules=maybe_cythonize(extensions, compiler_directives=directives),
      File "/tmp/pip-install-WhPCxJ/pandas/setup.py", line 475, in maybe_cythonize
        numpy_incl = pkg_resources.resource_filename('numpy', 'core/include')
      File "/erpnext/package/erpnext-py2/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1144, in resource_filename
        return get_provider(package_or_requirement).get_resource_filename(
      File "/erpnext/package/erpnext-py2/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 361, in get_provider
        __import__(moduleOrReq)
    ImportError: No module named numpy

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-WhPCxJ/pandas/

Activity

TomAugspurger

TomAugspurger commented on Feb 19, 2019

@TomAugspurger
Contributor
Dremor

Dremor commented on Feb 19, 2019

@Dremor
Author

I've searched for duplicates, did not found one. In another hand, manually install numpy works, but is far from ideal. Now I've got a similar issue with cython, still with the same install command.

Dremor

Dremor commented on Feb 19, 2019

@Dremor
Author

Correction : I've finally found the issue (did not find it with my initial search) : #25193

TomAugspurger

TomAugspurger commented on Feb 19, 2019

@TomAugspurger
Contributor

#2519

#25227 for the numpy side. No PR yet for the Cython issue.

added this to the No action milestone on Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @TomAugspurger@Dremor

        Issue actions

          pip doen't install numpy as prerequist · Issue #25373 · pandas-dev/pandas