Closed 7flash closed 9 months ago
Thanks for your issue. Have you googled it?
I guess this is something related to your python environment, not on prompt2model
. But if you still have problems, we are willing to help.
Hi @7flash, it would be helpful if you could add what operating system/version you used. Also, are you installing in a virtual environment or directly on your machine?
I was unable to reproduce this error when I tried on an Ubuntu 18.04 machine, on a virtual environment. Googling suggests that you may need to install python-dev
, though I'm not sure why this would be.
As Chenyang said, happy to help you with your installation
Hi @7flash, it would be helpful if you could add what operating system/version you used. Also, are you installing in a virtual environment or directly on your machine?
I was unable to reproduce this error when I tried on an Ubuntu 18.04 machine, on a virtual environment. Googling suggests that you may need to install
python-dev
, though I'm not sure why this would be.As Chenyang said, happy to help you with your installation
I am running this container in runpod A100-80GB machine
Dockerfile
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
WORKDIR /
RUN mkdir /workspace
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV DEBIAN_FRONTEND noninteractive\
SHELL=/bin/bash
RUN apt-get update --yes && \
# - apt-get upgrade is run to patch known vulnerabilities in apt-get packages as
# the ubuntu base image is rebuilt too seldom sometimes (less than once a month)
apt-get upgrade --yes && \
apt install --yes --no-install-recommends\
git\
wget\
curl\
bash\
software-properties-common\
openssh-server
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt install python3.10 -y --no-install-recommends && \
ln -s /usr/bin/python3.10 /usr/bin/python && \
rm /usr/bin/python3 && \
ln -s /usr/bin/python3.10 /usr/bin/python3 && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python get-pip.py
RUN pip install --no-cache-dir --pre torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --extra-index-url https://download.pytorch.org/whl/nightly/cu118
RUN pip install --no-cache-dir -U jupyterlab ipywidgets jupyter-archive
# RUN jupyter nbextension enable --py widgetsnbextension
RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
ADD start.sh /
RUN chmod +x /start.sh
CMD [ "/start.sh" ]
Hello @7flash
https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
Could you please try this?
Hello @7flash
https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
Could you please try this?
It says "No matching distribution found for" when trying to "pip install python-dev" or other variations
I saw in another comment that these packages were removed from directory
Hi @7flash : are you able to do pip install torch
?
I suspect, as with others above, that this is an issue of your environment more than prompt2model itself.
Closing, but feel free to reopen if this seems to be an issue of prompt2model itself.
When trying to install prompt2model encounter this error:
pip install prompt2model