Python Forum
Got problem intalling pynumpress
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Got problem intalling pynumpress
#6
(Nov-01-2020, 08:24 PM)snippsat Wrote: Look at setup.py
So need a compiler like eg MinGW and also this cl.exe file.
import os
import platform
from setuptools import setup, Extension, find_packages

import numpy as np

extra_compile_args = []
if platform.system().lower() == 'windows':
    # This may fail if compiled on Windows with a compiler
    # that doesn't provide a cl.exe compatability frontend
    # like mingw
    extra_compile_args = ['/EHsc']


try:
    from Cython.Build import cythonize
    ext_modules = [
        Extension(
            "pynumpress.pynumpress", [
                os.path.join('pynumpress/pynumpress.pyx'),
                os.path.join('pynumpress/MSNumpress.cpp'),
            ],
            language='c++',
            extra_compile_args=extra_compile_args,
            include_dirs=[np.get_include()]
        )
    ]
.......ect
So no Doc for setting this up,if really need it can install Anaconda/Miniconda be an easier choice,
as conda has this package Pynumpress :: Anaconda Cloud
Quick test:
(base) G:\Anaconda3
λ conda install -c conda-forge pynumpress
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: G:\Anaconda3

  added / updated specs:
    - pynumpress


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2020.6.20          |   py37hf50a25e_2         152 KB  conda-forge
    conda-4.9.0                |   py37hf50a25e_1         3.1 MB  conda-forge
    openssl-1.1.1h             |       he774522_0         5.8 MB  conda-forge
    pynumpress-0.0.5           |   py37h414f9d2_2          96 KB  conda-forge
    ------------------------------------------------------------
                                           Total:         9.0 MB

The following NEW packages will be INSTALLED:

  pynumpress         conda-forge/win-64::pynumpress-0.0.5-py37h414f9d2_2

The following packages will be UPDATED:

  ca-certificates                     2019.11.28-hecc5488_0 --> 2020.6.20-hecda079_0
  certifi                         2019.11.28-py37hc8dfbb8_1 --> 2020.6.20-py37hf50a25e_2
  conda                                4.8.3-py37hc8dfbb8_1 --> 4.9.0-py37hf50a25e_1
  openssl                                 1.1.1f-hfa6e2cd_0 --> 1.1.1h-he774522_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
certifi-2020.6.20    | 152 KB    | ####################################################################################################### | 100%
conda-4.9.0          | 3.1 MB    | ####################################################################################################### | 100%
pynumpress-0.0.5     | 96 KB     | ####################################################################################################### | 100%
openssl-1.1.1h       | 5.8 MB    | ####################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
# Test
(base) G:\Anaconda3
λ python
Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pynumpress import pynumpress
>>>
>>> # No error

Hi snippsat,
I found out the problem is actual about python. The folder named include is missing. I reinstalled python solved the problem. Thank you very much for your help.
snippsat likes this post
Reply


Messages In This Thread
Got problem intalling pynumpress - by weantony - Nov-01-2020, 04:41 PM
RE: Got problem intalling pynumpress - by Larz60+ - Nov-01-2020, 06:26 PM
RE: Got problem intalling pynumpress - by weantony - Nov-03-2020, 06:05 PM
RE: Got problem intalling pynumpress - by snippsat - Nov-01-2020, 08:24 PM
RE: Got problem intalling pynumpress - by weantony - Nov-03-2020, 06:07 PM
RE: Got problem intalling pynumpress - by weantony - Nov-03-2020, 06:04 PM
RE: Got problem intalling pynumpress - by snippsat - Nov-03-2020, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exception while intalling jupyter notebook bmohanraj91 3 4,680 May-28-2017, 02:02 AM
Last Post: bmohanraj91

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020