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

installation issue #24

Open
SaharHusseini opened this issue Jun 10, 2022 · 2 comments
Open

installation issue #24

SaharHusseini opened this issue Jun 10, 2022 · 2 comments

Comments

@SaharHusseini
Copy link

when I try
conda install --file requirements.txt

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • mkl_random==1.1.0=py37hb3f55d8_0
  • lame==3.100=h14c3975_1001
  • xorg-libice==1.0.10=h516909a_0
  • xorg-libxext==1.3.4=h516909a_0
  • x264==1!152.20180806=h14c3975_0
  • nettle==3.4.1=h1bed415_1002
  • fontconfig==2.13.1=h86ecdb6_1001
  • libxkbcommon==0.9.1=hebb1f50_0
  • glib==2.58.3=py37h6f030ca_1002
  • harfbuzz==2.4.0=h9f30f68_3
  • icu==64.2=he1b5a44_1
  • blas==2.14=openblas
  • libclang==9.0.0=default_hde54327_4
  • libllvm9==9.0.0=hc9558a2_3
  • xorg-xextproto==7.3.0=h14c3975_1002
  • bzip2==1.0.8=h516909a_2
  • nss==3.47=he751ad9_0
  • xorg-kbproto==1.0.7=h14c3975_1002
  • py-opencv==4.1.2=py37h5ca1d4c_2
  • pthread-stubs==0.4=h14c3975_1001
  • kiwisolver==1.1.0=pypi_0
  • xorg-libsm==1.2.3=h84519dc_1000
  • gstreamer==1.14.5=h36ae1b5_0
  • hdf5==1.10.5=nompi_h3c11f04_1104
  • nspr==4.24=he1b5a44_0
  • libwebp==1.0.2=h576950b_1
  • libopencv==4.1.2=py37_2
  • tqdm==4.40.2=pypi_0
  • torchvision==0.2.2=py_3
  • pytorch==1.0.1=py3.7_cuda10.0.130_cudnn7.4.2_2
  • cycler==0.10.0=pypi_0
  • libiconv==1.15=h516909a_1005
  • graphite2==1.3.13=hf484d3e_1000
  • gst-plugins-base==1.14.5=h0935bb2_0
  • mkl_fft==1.0.15=py37h516909a_1
  • pyparsing==2.4.5=pypi_0
  • xorg-libxdmcp==1.1.3=h516909a_0
  • pretrainedmodels==0.7.4=pypi_0
  • openssl==1.1.1=h7b6447c_0
  • pixman==0.38.0=h516909a_1003
  • expat==2.2.5=he1b5a44_1004
  • jasper==1.900.1=h07fcdf6_1006
  • dbus==1.13.6=he372182_0
  • munch==2.5.0=pypi_0
  • xorg-libxrender==0.9.10=h516909a_1002
  • xorg-renderproto==0.11.1=h14c3975_1002
  • libopenblas==0.3.7=h5ec1e0e_5
  • protobuf==3.11.1=py37he1b5a44_0
  • xorg-libxau==1.0.9=h14c3975_0
  • libxml2==2.9.10=hee79883_0
  • xorg-xproto==7.0.31=h14c3975_1007
  • liblapacke==3.8.0=14_openblas
  • tensorboardx==1.9=py_0
  • giflib==5.1.9=h516909a_0
  • libcblas==3.8.0=14_openblas
  • libxcb==1.13=h14c3975_1002
  • libuuid==2.32.1=h14c3975_1000
  • gnutls==3.6.5=hd3a4fd2_1002
  • xorg-libx11==1.6.9=h516909a_0
  • liblapack==3.8.0=14_openblas
  • libblas==3.8.0=14_openblas
  • gmp==6.1.2=hf484d3e_1000
  • matplotlib==3.1.2=pypi_0
  • opencv==4.1.2=py37_2
  • jpeg==9c=h14c3975_1001
  • cairo==1.16.0=hfb77d84_1002
  • pcre==8.43=he1b5a44_0
  • numpy==1.17.3=py37h95a1406_0
  • libprotobuf==3.11.1=h8b12597_0
  • qt==5.12.5=hd8c4c69_1
  • gettext==0.19.8.1=hc5be6a0_1002
  • ffmpeg==4.1.3=h167e202_0
  • openh264==1.8.0=hdbcaa40_1000

Current channels:

Is there any other way to install these packages?

@usmancheema89
Copy link

try pip install -r requirements.txt
maybe you will find these on pip

@kjczarne
Copy link

I was only able to run the demo notebook using the following environment:

dependencies:
  - python=3.10
  - pip
  - pip:
    - numba
    - six
    - face-alignment
    - tqdm
    - matplotlib
    - gdown
    - jupyterlab

Then I had to manually install a nightly version of Pytorch with CUDA 11.8 support (because I'm using an RTX 4090 at the moment):

pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118

The requirements file is a mish-mash of packages that are partly only available on PyPI, partly in Anaconda channels. I've spent a few hours trying to get it to work and no dice. Even the Pytorch version listed in requirements.txt seems to be wrong as you get huggingface/transformers#869 with the version listed. Surprisingly, nightly Pytorch 2.0 seems to work!

My suggestion for the requirements file would be to refactor it into a pip-compatible format with a minimal number of packages that are required for the project to work. Could anyone test my solution to this on a machine with an older version of CUDA, where no --pre flag for pip would be required (i.e. with Pytorch 1.13.1)? If this works with Pytorch 1.13.1 just as well, then one could just use the following environment.yml file:

dependencies:
  - python=3.10
  - pip
  - pip:
    - numba
    - six
    - face-alignment
    - tqdm
    - matplotlib
    - gdown
    - jupyterlab
    - torch==1.13.1
    - torchvision
    - torchaudio

Hope this helps! :)

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