Python Forum

Full Version: Couldn't install a go-game called dlgo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi everyone,

I'm trying to install a go game package called dlgo but I can't. Here's it all :
C:\Users\Nomamesse>pip install dlgo
Collecting dlgo
  Using cached dlgo-0.2-py3-none-any.whl (121 kB)
Collecting Flask>=0.10.1
  Using cached Flask-2.2.2-py3-none-any.whl (101 kB)
Collecting Flask-Cors
  Using cached Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)
Collecting future
  Using cached future-0.18.2.tar.gz (829 kB)
  Preparing metadata (setup.py) ... done
Collecting gomill
  Using cached gomill-0.8.3.tar.gz (241 kB)
  Preparing metadata (setup.py) ... done
Collecting h5py
  Using cached h5py-3.7.0.tar.gz (392 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting keras==2.2.2
  Using cached Keras-2.2.2-py2.py3-none-any.whl (299 kB)
Collecting numpy<=1.14.5
  Using cached numpy-1.14.5.zip (4.9 MB)
  Preparing metadata (setup.py) ... done
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting dlgo
  Using cached dlgo-0.1-py3-none-any.whl (121 kB)
Collecting keras
  Using cached keras-2.11.0-py2.py3-none-any.whl (1.7 MB)
ERROR: Cannot install dlgo==0.1 and dlgo==0.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    dlgo 0.2 depends on tensorflow==1.10.1
    dlgo 0.1 depends on tensorflow

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
I visited the page but couldn't really understand it all.

So I asked ChatGPT and then tried this :
C:\Users\Nomamesse>pip install dlgo~=0.1.0
Collecting dlgo~=0.1.0
  Using cached dlgo-0.1-py3-none-any.whl (121 kB)
Collecting Flask>=0.10.1
  Using cached Flask-2.2.2-py3-none-any.whl (101 kB)
Collecting Flask-Cors
  Using cached Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)
Collecting future
  Using cached future-0.18.2.tar.gz (829 kB)
  Preparing metadata (setup.py) ... done
Collecting gomill
  Using cached gomill-0.8.3.tar.gz (241 kB)
  Preparing metadata (setup.py) ... done
Collecting h5py
  Using cached h5py-3.7.0.tar.gz (392 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting keras
  Using cached keras-2.11.0-py2.py3-none-any.whl (1.7 MB)
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
ERROR: Could not find a version that satisfies the requirement tensorflow (from dlgo) (from versions: none)
ERROR: No matching distribution found for tensorflow

C:\Users\Nomamesse>pip install dlgo==0.2
Collecting dlgo==0.2
  Using cached dlgo-0.2-py3-none-any.whl (121 kB)
Collecting Flask>=0.10.1
  Using cached Flask-2.2.2-py3-none-any.whl (101 kB)
Collecting Flask-Cors
  Using cached Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)
Collecting future
  Using cached future-0.18.2.tar.gz (829 kB)
  Preparing metadata (setup.py) ... done
Collecting gomill
  Using cached gomill-0.8.3.tar.gz (241 kB)
  Preparing metadata (setup.py) ... done
Collecting h5py
  Using cached h5py-3.7.0.tar.gz (392 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting keras==2.2.2
  Using cached Keras-2.2.2-py2.py3-none-any.whl (299 kB)
Collecting numpy<=1.14.5
  Using cached numpy-1.14.5.zip (4.9 MB)
  Preparing metadata (setup.py) ... done
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement tensorflow==1.10.1 (from dlgo) (from versions: none)
ERROR: No matching distribution found for tensorflow==1.10.1

C:\Users\Nomamesse>pip install tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
Thanks by advance for your help. And happy new year :)
Error:
ERROR: Could not find a version that satisfies the requirement tensorflow (from dlgo) (from versions: none) ERROR: No matching distribution found for tensorflow
it requires tensorflow
(Jan-01-2023, 08:29 PM)Larz60+ Wrote: [ -> ]
Error:
ERROR: Could not find a version that satisfies the requirement tensorflow (from dlgo) (from versions: none) ERROR: No matching distribution found for tensorflow
it requires tensorflow

THat's why I tried to install it, as shown in the quotes.
there's a link in my post, click on tensorflow for installation instructions.
https://www.tensorflow.org/install
Use virtual enviroment to avoid confilcts with you have installed before.
Look at this post on how to make.
Quick test.
Ok so...
Let's begin with the virtual environment solution, here's the result :
C:\Users\Nomamesse>python -c "import sys; print(sys.executable)"
C:\Users\Nomamesse\AppData\Local\Programs\Python\Python311\python.exe

C:\Users\Nomamesse>pip -V
pip 22.3.1 from C:\Users\Nomamesse\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)

C:\Users\Nomamesse>python -m venv test_env

C:\Users\Nomamesse>cd test_env

C:\Users\Nomamesse\test_env>cd Scripts

C:\Users\Nomamesse\test_env\Scripts>activate

(test_env) C:\Users\Nomamesse\test_env\Scripts>cd..

(test_env) C:\Users\Nomamesse\test_env>python -c "import sys; print(sys.executable)"
C:\Users\Nomamesse\test_env\Scripts\python.exe

(test_env) C:\Users\Nomamesse\test_env>pip -V
pip 22.3 from C:\Users\Nomamesse\test_env\Lib\site-packages\pip (python 3.11)

(test_env) C:\Users\Nomamesse\test_env>pip install dlgo
Collecting dlgo
  Using cached dlgo-0.2-py3-none-any.whl (121 kB)
Collecting Flask>=0.10.1
  Using cached Flask-2.2.2-py3-none-any.whl (101 kB)
Collecting Flask-Cors
  Using cached Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)
Collecting future
  Using cached future-0.18.2.tar.gz (829 kB)
  Preparing metadata (setup.py) ... done
Collecting gomill
  Using cached gomill-0.8.3.tar.gz (241 kB)
  Preparing metadata (setup.py) ... done
Collecting h5py
  Using cached h5py-3.7.0.tar.gz (392 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting keras==2.2.2
  Using cached Keras-2.2.2-py2.py3-none-any.whl (299 kB)
Collecting numpy<=1.14.5
  Using cached numpy-1.14.5.zip (4.9 MB)
  Preparing metadata (setup.py) ... done
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting dlgo
  Using cached dlgo-0.1-py3-none-any.whl (121 kB)
Collecting keras
  Using cached keras-2.11.0-py2.py3-none-any.whl (1.7 MB)
ERROR: Cannot install dlgo==0.1 and dlgo==0.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    dlgo 0.2 depends on tensorflow==1.10.1
    dlgo 0.1 depends on tensorflow

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

[notice] A new release of pip available: 22.3 -> 22.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Conclusion : it failed again with the same error message.

I'll tale the Larz60+ in another post
(Jan-02-2023, 07:16 AM)Larz60+ Wrote: [ -> ]there's a link in my post, click on tensorflow for installation instructions.
https://www.tensorflow.org/install

(Jan-02-2023, 07:16 AM)Larz60+ Wrote: [ -> ]there's a link in my post, click on tensorflow for installation instructions.
https://www.tensorflow.org/install

Ok...
- I got back on the webpage https://www.tensorflow.org/install, downloaded and installed c++ redistributable
- then I clicked on the "download a package" link that leads to https://www.tensorflow.org/install/pip
- on this page, I copied/pasted the install commands, within and without python, which failed :
C:\Users\Nomamesse>conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
'conda' n’est pas reconnu en tant que commande interne 
ou externe, un programme exécutable ou un fichier de commandes. ("isn't recognized as etc...")

C:\Users\Nomamesse>python
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
  File "<stdin>", line 1
    conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
          ^^^^^^^
SyntaxError: invalid syntax
>>>

C:\Users\Nomamesse>python3 -m pip install "tensorflow<2.11"
Python est introuvable. ExÚcutez sans argument pour procÚder Ó l #translation : Python can't be found.

C:\Users\Nomamesse>python
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> C:\Users\Nomamesse>python3 -m pip install "tensorflow<2.11"
  File "<stdin>", line 1
    C:\Users\Nomamesse>python3 -m pip install "tensorflow<2.11"
       ^
SyntaxError: unexpected character after line continuation character
>>> Python est introuvable. ExÚcutez sans argument pour procÚder Ó l
  File "<stdin>", line 1
    Python est introuvable. ExÚcutez sans argument pour procÚder Ó l
           ^^^
SyntaxError: invalid syntax
>>> python3 -m pip install "tensorflow<2.11"
  File "<stdin>", line 1
    python3 -m pip install "tensorflow<2.11"
               ^^^ #related to pip
SyntaxError: invalid syntax
So now, scrolling the page, I can see the 3rd of the step-by-step instructions; I click on the link to miniconda, download it and when I start the installation I recognize the Anaconda logo, that I already installed a few weeks ago. So I stop the installation because I prefer that you confirm the necessity to install it or that you tell me it might enter in conflict.

Thanks by advance for your answer to this question.
Delete your (test_env) make a new enviroment.
Now use this,and it should work.
pip --no-cache-dir install dlgo
Quote: I click on the link to miniconda, download it and when I start the installation I recognize the Anaconda logo, that I already installed a few weeks ago
Can use Anaconda/Miniconda,but now you using it wrong have to activate (base) enviroment,can look at if the over dos not work.
You see in my Post that it work with standar Python 3.10.4 version and just pip install dlgo. in the enviroment.
(Jan-03-2023, 03:31 PM)snippsat Wrote: [ -> ]Delete your (test_env) make a new enviroment.
Now use this,and it should work.
pip --no-cache-dir install dlgo
Quote: I click on the link to miniconda, download it and when I start the installation I recognize the Anaconda logo, that I already installed a few weeks ago
Can use Anaconda/Miniconda,but now you using it wrong have to activate (base) enviroment,can look at if the over dos not work.
You see in my Post that it work with standar Python 3.10.4 version and just pip install dlgo. in the enviroment.

Do you mean : "Delete your (test_env) and make a new environment" ?
If the answer is yes, can you tell me how to ?
If it's no, thank you for rephrasing.
I'm sorry but I don't understand the rest of your post, would you mind rephrasing it ? I can speak french or spanish if you're more comfortable with them.
Thanks by advance for your answer.
(Jan-03-2023, 06:12 PM)Nomamesse Wrote: [ -> ]Do you mean : "Delete your (test_env) and make a new environment" ?
If the answer is yes, can you tell me how to ?
Yes just delete folder test_env and make new one,with same name or new name.
Then when new enviroment is activate do pip --no-cache-dir install dlgo
(Jan-03-2023, 06:12 PM)Nomamesse Wrote: [ -> ]'m sorry but I don't understand the rest of your post, would you mind rephrasing it ? I can speak french or spanish if you're more comfortable with them.
Thanks by advance for your answer.
I was talking about Anaconda/Miniconda look at this post or post.
Pages: 1 2