python - How do I get nmake onto my system so pipcmake can use it for installation - Stack Overflow

I'm trying to install an obscure scientific python package "pycotools3" on windows 10 in

I'm trying to install an obscure scientific python package "pycotools3" on windows 10 in conda using pip (3.6.9 environment). I use it in my research software which runs fine on osx. It's an old package and no longer actively supported. I am required to test my software on Windows. Unfortunately pycotools3 won't install. I think because cmake can't find nmake.

  CMake Error at CMakeLists.txt:23 (project):
Running

 'nmake' '-?'

failed with:

 The system cannot find the file specified

I've tried installing visual studio but this hasn't added nmake to any of the paths. What should i do to get nmake onto the machine and into the anaconda powershell path?

I'm trying to install an obscure scientific python package "pycotools3" on windows 10 in conda using pip (3.6.9 environment). I use it in my research software which runs fine on osx. It's an old package and no longer actively supported. I am required to test my software on Windows. Unfortunately pycotools3 won't install. I think because cmake can't find nmake.

  CMake Error at CMakeLists.txt:23 (project):
Running

 'nmake' '-?'

failed with:

 The system cannot find the file specified

I've tried installing visual studio but this hasn't added nmake to any of the paths. What should i do to get nmake onto the machine and into the anaconda powershell path?

Share Improve this question asked Mar 3 at 15:45 p . clarkp . clark 313 bronze badges 5
  • 2 Before you start the make you should run this command: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall XX, where XX is either x86 or x64 as appropriate to the system you are building. – OldBoy Commented Mar 3 at 16:40
  • found with Google: compile - Where do I find nmake for Windows 7 x64 - Super User Maybe this answer would help. Or you may try to ask for more on SuperUser – furas Commented Mar 3 at 22:39
  • @OldBoy Unfortunately the vcvarsall directory isn't present in my install. – p . clark Commented Mar 4 at 12:25
  • If you have installed Visual Studio, did you also install the C++ workload? – OldBoy Commented Mar 4 at 12:29
  • wiki.python./moin/WindowsCompilers – rasjani Commented 2 days ago
Add a comment  | 

1 Answer 1

Reset to default 0
  1. PyCoTools3 ([PyPI]: pycotools3) is a pure Python package, and should install on any Python 3

    (py_pc064_03.06_test1_pippkgs) [cfati@CFATI-5510-0:e:\Work\Dev\StackExchange\StackOverflow\q079481428]> sopr.bat
    ### Set shorter prompt to better fit when pasted in StackOverflow (or other) pages ###
    
    [prompt]> python -VV
    Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)]
    
    [prompt]> python -m pip install --no-deps pycotools3
    Looking in indexes: https://pypi./simple, https://pypi.ngc.nvidia
    Collecting pycotools3
      Downloading pycotools3-2.1.22-py3-none-any.whl (128 kB)
         |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 128 kB 2.2 MB/s
    Installing collected packages: pycotools3
    Successfully installed pycotools3-2.1.22
    

    So, the package itself is perfectly installable (not to be confused with runable). Its one of the dependencies (and it has 113 of them) that has the problem, yielding the question ill formed. Also, it doesn't list the install command as it should ([SO]: How to create a Minimal, Reproducible Example (reprex (mcve)))

  2. Python 3.6 seems like an odd Python 3 version to use, as its EoL is 3+ years ago

Hmm, as I noticed that [GitHub]: CiaranWelsh/pycotools3 doesn't have any dependency version requirements, I just attempted installing:

[prompt]> python -m pip uninstall -y pycotools3
Found existing installation: pycotools3 2.1.22
Uninstalling pycotools3-2.1.22:
  Successfully uninstalled pycotools3-2.1.22

[prompt]> python -m pip install --prefer-binary pycotools3
Looking in indexes: https://pypi./simple, https://pypi.ngc.nvidia
Collecting pycotools3

# @TODO - cfati: Truncated output

Successfully installed MarkupSafe-2.0.1 alabaster-0.7.13 antimony-2.15.0 appdirs-1.4.4 async-generator-1.10 atomicwrites-1.4.0 attrs-22.2.0 babel-2.11.0 backcall-0.2.0 bleach-4.1.0 certifi-2025.1.31 charset-normalizer-2.0.12 colorama-0.4.5 cycler-0.11.0 decorator-5.1.1 defusedxml-0.7.1 dill-0.3.4 docutils-0.18.1 entrypoints-0.4 idna-3.10 imagesize-1.4.1 importlib-metadata-4.8.3 iniconfig-1.1.1 ipykernel-5.5.6 ipython-7.16.3 ipython-genutils-0.2.0 jedi-0.17.2 jinja2-3.0.3 jsonschema-3.2.0 jupyter-client-7.1.2 jupyter-core-4.9.2 jupyterlab-pygments-0.1.2 kiwisolver-1.3.1 libroadrunner-2.0.5 lxml-5.3.2 matplotlib-3.3.4 mistune-0.8.4 multiprocess-0.70.12.2 munch-4.0.0 nbclient-0.5.9 nbconvert-6.0.7 nbformat-5.1.3 nbsphinx-0.8.8 nest-asyncio-1.6.0 nose-1.3.7 numpy-1.19.3 packaging-21.3 pandas-1.1.5 pandocfilters-1.5.1 parso-0.7.1 pathos-0.2.8 phrasedml-1.3.0 pickleshare-0.7.5 pillow-8.4.0 plotly-5.18.0 pluggy-1.0.0 pox-0.3.0 ppft-1.6.6.4 prompt-toolkit-3.0.36 psutil-7.0.0 py-1.11.0 pycotools3-2.1.22 pygments-2.14.0 pyparsing-3.1.4 pyrsistent-0.18.0 pytest-7.0.1 python-dateutil-2.9.0.post0 python-libcombine-0.2.15 python-libnuml-1.1.4 python-libsbml-5.19.2 python-libsedml-2.0.26 pytz-2025.2 pywin32-305 pyyaml-6.0.1 pyzmq-25.1.2 requests-2.27.1 rrplugins-2.1.3 sbml2matlab-1.2.3 scipy-1.5.4 seaborn-0.11.2 six-1.17.0 sklearn-0.0.post12 snowballstemmer-2.2.0 sphinx-5.3.0 sphinx-rtd-theme-2.0.0 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jquery-4.1 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 tellurium-2.2.0 tenacity-8.2.2 testpath-0.6.0 tomli-1.2.3 tornado-6.1 traitlets-4.3.3 typing-extensions-4.1.1 urllib3-1.26.20 wcwidth-0.2.13 webencodings-0.5.1 zipp-3.6.0

Since I used a VirtualEnv, I found [anaconda]: Installing pip packages that states:

However, you might need to use pip if a package or specific version is not available through conda channels.

So, there you go, problem solved (with no need of installing anything).

Might be interesting to read:

  • [SO]: When making a Python 2.7 venv in Pycharm, I am getting a syntax error and told it is using Python 3.11? How do I use Python 2.7? (@CristiFati's answer)

  • [SO]: Creation of Virtual environment with python 3.9 version is executed successfully but python version 2.7 or python version 2.2 shows error (@CristiFati's answer)

  • [SO]: can't install pillow neither packtools in Python 2.7.17 (@CristiFati's answer)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745086032a4610410.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信