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

couldn't create the rtp env #7

Open
rickcoup opened this issue Oct 5, 2024 · 5 comments
Open

couldn't create the rtp env #7

rickcoup opened this issue Oct 5, 2024 · 5 comments

Comments

@rickcoup
Copy link

rickcoup commented Oct 5, 2024

Keeps getting the error message:
ERROR: Could not find a version that satisfies the requirement numpy<3.0.0,>=2.0.

It couldn't finish setting up the rtp.

Tried it on my local laptop and Anaconda cloud. Same errors.

@rickcoup
Copy link
Author

Here is more details that I am trying from the Anaconda cloud.

Cloning into 'real-toxicity-prompts'...
remote: Enumerating objects: 2195, done.
remote: Counting objects: 100% (2195/2195), done.
remote: Compressing objects: 100% (753/753), done.
remote: Total 2195 (delta 1446), reused 2181 (delta 1435), pack-reused 0 (from 0)
Receiving objects: 100% (2195/2195), 5.60 MiB | 25.02 MiB/s, done.
Resolving deltas: 100% (1446/1446), done.
(base) 15:14 ~ $ ls
README.ipynb  Untitled.ipynb  anaconda_projects  real-toxicity-prompts
(base) 15:14 ~ $ cd real-toxicity-prompts/
(base) 15:14 ~/real-toxicity-prompts (master)$ conda env create -f environment.yml
Channels:
 - defaults
 - pytorch
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages:
                                                                                                                                                                                      
Preparing transaction: done                                                                                                                                                           
Verifying transaction: done                                                                                                                                                           
Executing transaction: done                                                                                                                                                           
Installing pip dependencies: / Ran pip subprocess with arguments:                                                                                                                     
['/home/984de775-9ca3-48fe-aeab-3678db42dcc2/.conda/envs/rtp/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt', '--exists-action=b']                                                                                                                                   
Pip subprocess output:                                                                                                                                                                
Looking in links: /usr/share/pip-wheels                                                                                                                                               
Requirement already satisfied: click in /home/984de775-9ca3-48fe-aeab-3678db42dcc2/.conda/envs/rtp/lib/python3.8/site-packages (from -r /home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt (line 1)) (8.1.7)                                                                                                               
Collecting datasketch (from -r /home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt (line 2))                                          
  Downloading datasketch-1.6.5-py3-none-any.whl.metadata (5.8 kB)                                                                                                                     
Collecting google-api-python-client (from -r /home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt (line 3))                            
  Downloading google_api_python_client-2.149.0-py2.py3-none-any.whl.metadata (6.7 kB)                                                                                                 
Collecting nltk (from -r /home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt (line 4))                                                
  Downloading nltk-3.9.1-py3-none-any.whl.metadata (2.9 kB)                                                                                                                           
Collecting openai (from -r /home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt (line 5))                                              
  Downloading openai-1.52.0-py3-none-any.whl.metadata (24 kB)                                                                                                                         
Collecting tensorboard (from -r /home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt (line 6))                                         
  Downloading tensorboard-2.14.0-py3-none-any.whl.metadata (1.8 kB)                                                                                                                   
Collecting tensorboardX (from -r /home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt (line 7))                                        
  Downloading tensorboardX-2.6.2.2-py2.py3-none-any.whl.metadata (5.8 kB)                                                                                                             
Collecting spacy (from -r /home/984de775-9ca3-48fe-aeab-3678db42dcc2/real-toxicity-prompts/condaenv.f3um7944.requirements.txt (line 8))                                               
  Downloading spacy-3.8.2.tar.gz (1.3 MB)                                                                                                                                             
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 16.8 MB/s eta 0:00:00                                                                                                        
  Installing build dependencies: started                                                                                                                                              
  Installing build dependencies: finished with status 'error'                                                                                                                         
                                                                                                                                                                                      
Pip subprocess error:                                                                                                                                                                 
  error: subprocess-exited-with-error                                     

@rickcoup
Copy link
Author

  × pip subprocess to install build dependencies did not run successfully.                                                                                                            
  │ exit code: 1                                                                                                                                                                      
  ╰─> [71 lines of output]                                                                                                                                                            
      Looking in links: /usr/share/pip-wheels, /usr/share/pip-wheels                                                                                                                  
      Ignoring numpy: markers 'python_version >= "3.9"' don't match your environment                                                                                                  
      Collecting setuptools                                                                                                                                                           
        Downloading setuptools-75.2.0-py3-none-any.whl.metadata (6.9 kB)                                                                                                              
      Collecting cython<3.0,>=0.25                                                                                                                                                    
        Downloading Cython-0.29.37-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl.metadata (3.1 kB)                                                   
      Collecting cymem<2.1.0,>=2.0.2                                                                                                                                                  
        Downloading cymem-2.0.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)                                                                            
      Collecting preshed<3.1.0,>=3.0.2                                                                                                                                                
        Downloading preshed-3.0.9-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.2 kB)                                   
      Collecting murmurhash<1.1.0,>=0.28.0                                                                                                                                            
        Downloading murmurhash-1.0.10-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.0 kB)                               
      Collecting thinc<8.4.0,>=8.3.0                                                                                                                                                  
        Downloading thinc-8.3.2.tar.gz (193 kB)                                                                                                                                       
        Installing build dependencies: started                                                                                                                                        
        Installing build dependencies: finished with status 'error'                                                                                                                   
        error: subprocess-exited-with-error
      
        × pip subprocess to install build dependencies did not run successfully.
        │ exit code: 1
        ╰─> [40 lines of output]
            Looking in links: /usr/share/pip-wheels, /usr/share/pip-wheels, /usr/share/pip-wheels
            Ignoring numpy: markers 'python_version >= "3.9"' don't match your environment
            Collecting setuptools
              Using cached setuptools-75.2.0-py3-none-any.whl.metadata (6.9 kB)
            Collecting cython<3.0,>=0.25
              Using cached Cython-0.29.37-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl.metadata (3.1 kB)
            Collecting murmurhash<1.1.0,>=1.0.2
              Using cached murmurhash-1.0.10-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.0 kB)
            Collecting cymem<2.1.0,>=2.0.2
              Using cached cymem-2.0.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)
            Collecting preshed<3.1.0,>=3.0.2
              Using cached preshed-3.0.9-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.2 kB)
            Collecting blis<1.1.0,>=1.0.0
              Downloading blis-1.0.1.tar.gz (3.6 MB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 43.4 MB/s eta 0:00:00
              Installing build dependencies: started
              Installing build dependencies: finished with status 'error'
              error: subprocess-exited-with-error
      
              × pip subprocess to install build dependencies did not run successfully.
              │ exit code: 1
              ╰─> [8 lines of output]
                  Looking in links: /usr/share/pip-wheels, /usr/share/pip-wheels, /usr/share/pip-wheels, /usr/share/pip-wheels
                  Collecting setuptools
                    Using cached setuptools-75.2.0-py3-none-any.whl.metadata (6.9 kB)
                  Collecting cython>=0.25
                    Downloading Cython-3.0.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
                  ERROR: Ignored the following versions that require a different python version: 1.25.0 Requires-Python >=3.9; 1.25.1 Requires-Python >=3.9; 1.25.2 Requires-Python >=3.9; 1.26.0 Requires-Python <3.13,>=3.9; 1.26.1 Requires-Python <3.13,>=3.9; 1.26.2 Requires-Python >=3.9; 1.26.3 Requires-Python >=3.9; 1.26.4 Requires-Python >=3.9; 2.0.0 Requires-Python >=3.9; 2.0.1 Requires-Python >=3.9; 2.0.2 Requires-Python >=3.9; 2.1.0 Requires-Python >=3.10; 2.1.0rc1 Requires-Python >=3.10; 2.1.1 Requires-Python >=3.10; 2.1.2 Requires-Python >=3.10
                  ERROR: Could not find a version that satisfies the requirement numpy<3.0.0,>=2.0.0 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4)
                  ERROR: No matching distribution found for numpy<3.0.0,>=2.0.0
                  [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.
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: subprocess-exited-with-error

@BronyaKaslana06
Copy link

I met this problem, too. Have you already solve this problem? Thank you.

@GangGreenTemperTatum
Copy link

you need to specify a later version of python in the environment.yml file but you then may run into other dependency issues

dependencies:
  - python=3.9

@rickcoup
Copy link
Author

rickcoup commented Dec 9, 2024

changes to 3.9 works for me.

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

3 participants