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 installation fails on windows #52

Closed
oldpoppasmurf opened this issue Dec 15, 2023 · 3 comments
Closed

Pip installation fails on windows #52

oldpoppasmurf opened this issue Dec 15, 2023 · 3 comments

Comments

@oldpoppasmurf
Copy link

Hello, I was trying to install pybinding for python 3.12 on windows using command prompt and had the cmake make list error from #46,
and got the same setup tools error but it is not fixed when I use pip install setuptools as it says I already have an up to date version,
as seen here:
`C:\Users\oldpo>py -m pip install -i https://test.pypi.org/simple/ pybinding
Looking in indexes: https://test.pypi.org/simple/
Collecting pybinding
Downloading https://test-files.pythonhosted.org/packages/29/e7/d11577e8d603994c27443cebafd1f6b8bdfe84c6e8a641dd41bc1c3c9c21/pybinding-1.0.3.tar.gz (759 kB)
---------------------------------------- 759.1/759.1 kB 4.8 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
Looking in indexes: https://test.pypi.org/simple/
ERROR: Could not find a version that satisfies the requirement setuptools>=42 (from versions: none)
ERROR: No matching distribution found for setuptools>=42
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

C:\Users\oldpo>py -m pip install setuptools
Requirement already satisfied: setuptools in c:\users\oldpo\appdata\local\programs\python\python312\lib\site-packages (69.0.2)`

@BertJorissen
Copy link
Collaborator

Currently, so haven't compiled with 3.12 yet. You have to download visual studio to be able to compile it on Windows. Just install 3.11 and it will work. I'll try to get a new release out next week for 3.12, but this will take some time.
Best
Bert

@oldpoppasmurf
Copy link
Author

Hi Bert,
Thanks for the fast response, I moved over to visual studio code and used miniconda to set up a 3.11 enviroment with the required dependancies but have been given a different error where pip gives a package dependencies error based off pytests, see below
`PS C:\Users\oldpo> pip install -i https://test.pypi.org/simple/ pybinding
Looking in indexes: https://test.pypi.org/simple/
Collecting pybinding
Using cached https://test-files.pythonhosted.org/packages/a1/bd/86636d8a926632bc8295231a44fa9c650fae720dfd4a91fb46321b1fdc0b/pybinding-1.0.3-cp311-cp311-win_amd64.whl.metadata (9.1 kB)
Requirement already satisfied: numpy>=1.12 in c:\users\oldpo\miniconda3\lib\site-packages (from pybinding) (1.26.2)
Requirement already satisfied: scipy>=0.19 in c:\users\oldpo\miniconda3\lib\site-packages (from pybinding) (1.11.4)
Requirement already satisfied: matplotlib>=3.5 in c:\users\oldpo\miniconda3\lib\site-packages (from pybinding) (3.8.0)
INFO: pip is looking at multiple versions of pybinding to determine which version is compatible with other requirements. This could take a while.
Using cached https://test-files.pythonhosted.org/packages/1a/a9/cdcccacc938912ce74f54bdd220b93fb0db6d32b43fbb0cc71e76ab3742b/pybinding-1.0.2-cp311-cp311-win_amd64.whl.metadata (9.1 kB)
Using cached https://test-files.pythonhosted.org/packages/33/ae/63fe200220ebd5cfee7f8d029cc5b644173a98da8bfd7630c76af44e6733/pybinding-1.0.1-cp311-cp311-win_amd64.whl.metadata (9.1 kB)
ERROR: Cannot install pybinding==1.0.1, pybinding==1.0.2 and pybinding==1.0.3 because these package versions have conflicting dependencies.

The conflict is caused by:
pybinding 1.0.3 depends on pytest>=5.0
pybinding 1.0.2 depends on pytest>=5.0
pybinding 1.0.1 depends on pytest>=5.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts`

@BertJorissen
Copy link
Collaborator

Hi,
You first need to run:
'pip install numpy pytest scipy matplotlib'
and then the installation of pybinding from test.pypi.org.
When on 3.11, the pybinding library is precompiled, so visual studio is not really necessary.
Best
Bert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants