Python Forum
Couldn't install a go-game called dlgo
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Couldn't install a go-game called dlgo
#1
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 :)
Reply
#2
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
Reply
#3
(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.
Reply
#4
there's a link in my post, click on tensorflow for installation instructions.
https://www.tensorflow.org/install
Reply
#5
Use virtual enviroment to avoid confilcts with you have installed before.
Look at this post on how to make.
Quick test.
Reply
#6
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
Reply
#7
(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.
Reply
#8
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.
Reply
#9
(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.
Reply
#10
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple variable inputs when only one is called for ChrisDall 2 496 Oct-20-2023, 07:43 PM
Last Post: deanhystad
  how can a function find the name by which it is called? Skaperen 18 3,518 Aug-24-2022, 04:52 PM
Last Post: Skaperen
  function with 'self' input parameter errors out with and without 'self' called dford 12 3,145 Jan-15-2022, 06:07 PM
Last Post: deanhystad
  What is this formatting called? Mark17 2 1,779 Dec-14-2020, 08:42 PM
Last Post: snippsat
  Class Instances called in the wrong order IanIous 4 2,858 Mar-06-2020, 02:16 PM
Last Post: IanIous
  I couldn't understand the output of the below code ravich129 1 1,936 Dec-12-2019, 06:24 AM
Last Post: sandeep_ganga
  How do you add the results together each time a function is called? Exsul 10 5,175 Aug-09-2019, 09:18 PM
Last Post: ichabod801
  Called Functions Not Working WhatAmIDoing09 3 2,580 Jul-12-2019, 07:02 PM
Last Post: ichabod801
  Getting error when called through instance method aankrose 2 2,594 Mar-02-2019, 07:19 PM
Last Post: aankrose
  Couldn't really understand the problem Batselot 1 2,294 Dec-13-2018, 07:59 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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