Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install lifetimes - throwing error and unable to install packages #70192

Closed
dudestc mannequin opened this issue Jan 4, 2016 · 4 comments
Closed

pip install lifetimes - throwing error and unable to install packages #70192

dudestc mannequin opened this issue Jan 4, 2016 · 4 comments
Labels
build The build process and cross-build OS-windows

Comments

@dudestc
Copy link
Mannequin

dudestc mannequin commented Jan 4, 2016

BPO 26004
Nosy @terryjreedy, @pfmoore, @tjguk, @zware, @eryksun, @zooba
Files
  • log.txt: log file with messages and error messages
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2016-01-08.18:17:54.920>
    created_at = <Date 2016-01-04.08:45:06.517>
    labels = ['build', 'invalid', 'OS-windows']
    title = 'pip install lifetimes - throwing error and unable to install packages'
    updated_at = <Date 2016-01-08.18:17:54.918>
    user = 'https://bugs.python.org/dudestc'

    bugs.python.org fields:

    activity = <Date 2016-01-08.18:17:54.918>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-01-08.18:17:54.920>
    closer = 'terry.reedy'
    components = ['Windows']
    creation = <Date 2016-01-04.08:45:06.517>
    creator = 'dudestc'
    dependencies = []
    files = ['41489']
    hgrepos = []
    issue_num = 26004
    keywords = []
    message_count = 4.0
    messages = ['257445', '257492', '257525', '257772']
    nosy_count = 7.0
    nosy_names = ['terry.reedy', 'paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'dudestc']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue26004'
    versions = ['Python 3.5']

    @dudestc
    Copy link
    Mannequin Author

    dudestc mannequin commented Jan 4, 2016

    Not able to install "lifetimes" package using pip script.
    Need urgent help.

    Followed the following links for help, but still no success
    http://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/
    http://stackoverflow.com/questions/26473854/python-pip-has-issues-with-path-for-ms-visual-studio-2010-express-for-64-bit-ins/26513378#26513378

    @dudestc dudestc mannequin added OS-windows build The build process and cross-build labels Jan 4, 2016
    @zooba
    Copy link
    Member

    zooba commented Jan 4, 2016

    Since you're on Python 3.5, you'll need Visual Studio 2015 to build extensions.

    However, since the extension in question is numpy, you'll need to find prebuilt binaries since you won't be able to compile it yourself just yet. I believe Continuum has builds for 3.5 in Anaconda now.

    @eryksun
    Copy link
    Contributor

    eryksun commented Jan 5, 2016

    You can build NumPy with only a C compiler, but it won't have accelerated BLAS/LAPACK. However, lifetimes requires SciPy, which in turn requires Fortran. This is a common requirement with a lot of the scientific-computing stack, so you may as well choose a complete solution such as Anaconda.

    That said, if you just need a few packages, then Christoph Gohlke provides an extensive collection of wheels 1. For example, I have a directory with the following wheels downloaded from Christoph's site:

    C:\>dir /b Z:\Python\wheel
    matplotlib-1.5.0-cp35-none-win_amd64.whl
    numpy-1.10.2+mkl-cp35-none-win_amd64.whl
    pandas-0.17.1-cp35-none-win_amd64.whl
    scipy-0.16.1-cp35-none-win_amd64.whl
    

    I'll test installing lifetimes and matplotlib in a virtual environment:

    C:\>py -3 -m venv --symlinks C:\Temp\env35
    C:\>C:\Temp\env35\Scripts\activate.bat
    

    The command-line option "-f directory" makes pip look for packages in a local directory:

    (env35) C:\>pip install -f Z:\Python\wheel lifetimes matplotlib
    Collecting lifetimes
      Using cached Lifetimes-0.1.6.3.tar.gz
    Collecting matplotlib
    Collecting numpy (from lifetimes)
    Collecting scipy (from lifetimes)
    Collecting pandas>=0.14 (from lifetimes)
    Collecting pyparsing!=2.0.4,>=1.5.6 (from matplotlib)
      Downloading pyparsing-2.0.7-py2.py3-none-any.whl
    Collecting pytz (from matplotlib)
      Using cached pytz-2015.7-py2.py3-none-any.whl
    Collecting python-dateutil (from matplotlib)
      Using cached python_dateutil-2.4.2-py2.py3-none-any.whl
    Collecting cycler (from matplotlib)
      Downloading cycler-0.9.0-py2.py3-none-any.whl
    Collecting six>=1.5 (from python-dateutil->matplotlib)
      Using cached six-1.10.0-py2.py3-none-any.whl
    Installing collected packages: numpy, scipy, six, python-dateutil,
        pytz, pandas, lifetimes, pyparsing, cycler, matplotlib
      Running setup.py install for lifetimes
    Successfully installed cycler-0.9.0 lifetimes-0.1.6.3
        matplotlib-1.5.0 numpy-1.10.2 pandas-0.17.1 pyparsing-2.0.7
        python-dateutil-2.4.2 pytz-2015.7 scipy-0.16.1 six-1.10.0
    

    @terryjreedy
    Copy link
    Member

    Debashish: questions on using pip should be directed to python-list, also accessible as newsgroup gmane.comp.python.general at news.gmane.org. pip is otherwise maintained separately from CPython and has its own bug-reporting system.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build OS-windows
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants