简体   繁体   English

Python3.7 缺少 pip 包

[英]Python3.7 Missing pip package

I keep getting this error that this package is missing.我不断收到此包丢失的错误。 I used a conda enviroment on my local PC but I am trying to compile a docker-compose on server.我在本地 PC 上使用了 conda 环境,但我正在尝试在服务器上编译 docker-compose。 Is there anything I can do?有什么我可以做的吗?

I have try using different version of item but I get the same problem over again.我尝试使用不同版本的项目,但我又遇到了同样的问题。

dockerfile文件

FROM python:3.7
WORKDIR /app
Copy . ./

RUN pip install --upgrade pip

RUN pip install -r requirements.txt
RUN python -m nltk.downloader punkt

EXPOSE 5000
ENTRYPOINT ["python"]
CMD ["./app/server.py"]

requirments.txt要求.txt

aniso8601==8.0.0
asn1crypto==1.3.0
attrs==19.3.0
boto==2.49.0
boto3==1.10.34
botocore==1.13.34
bz2file==0.98
cachetools==3.1.1
certifi==2019.11.28
cffi==1.13.2
chardet==3.0.4
Click==7.0
cryptography==2.8
docutils==0.15.2
Flask==1.1.1
Flask-Cors==3.0.8
flask-restplus==0.13.0
gensim==3.8.1
google-api-core==1.14.3
google-auth==1.7.2
google-cloud-bigquery==1.22.0
google-cloud-core==1.1.0
google-cloud-storage==1.23.0
google-resumable-media==0.5.0
googleapis-common-protos==1.6.0
idna==2.8
importlib-metadata==1.4.0
itsdangerous==1.1.0
Jinja2==2.10.3
jmespath==0.9.4
jsonschema==3.2.0
MarkupSafe==1.1.1
mecab-python3==0.996.2
mkl-fft==1.0.15
mkl-random==1.1.0
mkl-service==2.3.0
more-itertools==8.1.0
nltk==3.4.5
numexpr==2.7.0
numpy==1.17.4
pandas==0.25.3
protobuf==3.11.1
pyasn1==0.4.8
pyasn1-modules==0.2.7
pycparser==2.19
PyMySQL==0.9.3
pyOpenSSL==19.1.0
pyrsistent==0.15.7
PySocks==1.7.1
python-dateutil==2.8.0
pytz==2019.3
requests==2.22.0
ERROR: Could not find a version that satisfies the requirement mkl-fft==1.0.9 (from -r requirements.txt (line 34)) (from versions: none)
ERROR: No matching distribution found for mkl-fft==1.0.9 (from -r requirements.txt (line 34))
ERROR: Service 'server' failed to build: The command '/bin/sh -c pip3 install -r requirements.txt' returned a non-zero code: 1

I am using a ubuntu 18.04 lts VM on google cloud platform.我在谷歌云平台上使用 ubuntu 18.04 lts VM。

I can add more details if need.如果需要,我可以添加更多详细信息。 I am kind of stump how to fix this issue我有点不知道如何解决这个问题

The latest version of mkl-fft is 1.0.6 . mkl-fft的最新版本是1.0.6 Fix your requirements.txt :修复您的requirements.txt

mkl-fft==1.0.6

Upd .更新 Intel provide wheels for Python up to 3.6, but not 3.7 or 3.8, and no source distribution. Intel 为 Python提供高达 3.6 的轮子,但不是 3.7 或 3.8,并且没有源代码分发。 Either downgrade your Python to 3.6 or install from the source code: pip install 'git+https://github.com/IntelPython/mkl_fft.git#egg=mkl_fft' .将您的 Python 降级到 3.6 或从源代码pip install 'git+https://github.com/IntelPython/mkl_fft.git#egg=mkl_fft'pip install 'git+https://github.com/IntelPython/mkl_fft.git#egg=mkl_fft' In the requirements.txt :requirements.txt

git+https://github.com/IntelPython/mkl_fft.git#egg=mkl_fft

But you need to install MKL library.但是你需要安装 MKL 库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM