pip install models
.......
.......
Traceback (most recent call last):
File "c:\users\user name\appdata\local\programs\python\python36-32\lib\site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 568, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
C:\Users\user name>py -m pip install models
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/models/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/models/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/models/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/models/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/models/
Could not fetch URL https://pypi.org/simple/models/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/models/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement models
ERROR: No matching distribution found for models
docker run --rm -it python:3.6.5 /bin/bash -c "pip install models"
エラーメッセージ
Collecting models
Downloading https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-plfjpjhq/models/setup.py", line 25, in <module>
import models
File "/tmp/pip-install-plfjpjhq/models/models/__init__.py", line 23, in <module>
from base import *
ModuleNotFoundError: No module named 'base'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-plfjpjhq/models/
You are using pip version 10.0.1, however version 21.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@74afea9a4074:/# python --version
Python 2.7.18
root@74afea9a4074:/# easy_install models
WARNING: The easy_install command is deprecated and will be removed in a future version.
Searching for models
Reading https://pypi.org/simple/models/
Downloading https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz#sha256=b5aa29c6b57a667cda667dd9fbd33bbd15c14cc285e57dda64f4f4c0fd35e0ae
Best match: models 0.9.3
Processing models-0.9.3.tar.gz
Writing /tmp/easy_install-eYJ323/models-0.9.3/setup.cfg
Running models-0.9.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eYJ323/models-0.9.3/egg-dist-tmp-hThwW2
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 8, in <module>
sys.exit(main())
(長いので省略)
File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-eYJ323/models-0.9.3/setup.py", line 25, in <module>
File "/tmp/easy_install-eYJ323/models-0.9.3/models/__init__.py", line 24, in <module>
File "/tmp/easy_install-eYJ323/models-0.9.3/models/props.py", line 23, in <module>
ImportError: No module named yaml
root@74afea9a4074:/# easy_install pyyaml
WARNING: The easy_install command is deprecated and will be removed in a future version.
Searching for pyyaml
Reading https://pypi.org/simple/pyyaml/
Downloading https://files.pythonhosted.org/packages/ba/d4/3cf562876e0cda0405e65d351b835077ab13990e5b92912ef2bf1a2280e0/PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl#sha256=bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185
Best match: PyYAML 5.4.1
Processing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl
Installing PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl to /usr/local/lib/python2.7/site-packages
Adding PyYAML 5.4.1 to easy-install.pth file
Installed /usr/local/lib/python2.7/site-packages/PyYAML-5.4.1-py2.7-linux-x86_64.egg
Processing dependencies for pyyaml
Finished processing dependencies for pyyaml
root@74afea9a4074:/# easy_install models
WARNING: The easy_install command is deprecated and will be removed in a future version.
Searching for models
Reading https://pypi.org/simple/models/
Downloading https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz#sha256=b5aa29c6b57a667cda667dd9fbd33bbd15c14cc285e57dda64f4f4c0fd35e0ae
Best match: models 0.9.3
Processing models-0.9.3.tar.gz
Writing /tmp/easy_install-yZdrld/models-0.9.3/setup.cfg
Running models-0.9.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-yZdrld/models-0.9.3/egg-dist-tmp-4YSLDE
zip_safe flag not set; analyzing archive contents...
Moving models-0.9.3-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding models 0.9.3 to easy-install.pth file
Installed /usr/local/lib/python2.7/site-packages/models-0.9.3-py2.7.egg
Processing dependencies for models
Finished processing dependencies for models
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/05/07 03:10
2021/05/07 03:55
2021/05/07 05:22
2021/05/07 07:05
2021/05/07 07:17
2021/05/07 12:25 編集