aws Linux のツイスト ライブラリに奇妙な問題があります。
aws ec2 インスタンス、aws linux を使用します。python 3.6.5
(仮想環境)
何らかの理由twisted
でライブラリが正しくインストールされていません。
pip install twisted
成功を示し、エラーはありません。
ここで、要件には、他の要件とともにライブラリが正常にインストールされたという出力がpip install requirements.txt
含まれます。twisted
ただしpip list
、その後は表示されずtwisted
、コードも機能しません (twisted モジュールがありません)。
Successfully installed Automat-0.7.0 Django-2.0.6 PyHamcrest-1.9.0 PyJWT-1.6.4 aioredis-1.1.0 altgraph-0.15 apscheduler-3.5.1 asgiref-2.3.2 async-timeout-3.0.0 attrs-18.1.0 autobahn-18.6.1 channels-2.1.1 channels-redis-2.2.1 configparser-3.5.0 constantly-15.1.0 daphne-2.2.1 django-cors-headers-2.3.0 django-extensions-2.0.7 djangorestframework-3.8.2 djangorestframework-jwt-1.11.0 future-0.16.0 gunicorn-19.7.1 hiredis-0.2.0 hyperlink-18.0.0 idna-2.7 incremental-17.5.0 jsonpickle-0.9.6 macholib-1.9 msgpack-0.5.6 pefile-2017.11.5 psycopg2-2.7.5 pyinstaller-3.3.1 pytz-2018.5 six-1.11.0 twisted-18.7.0 txaio-2.10.0 tzlocal-1.5.1 websocket-client-0.48.0 zope.interface-4.5.0
(environment) [ec2-user@ip********** ~]$ pip list
Package Version
----------------------- ----------
aioredis 1.1.0
altgraph 0.15
asgiref 2.3.2
async-timeout 3.0.0
attrs 18.1.0
autobahn 18.6.1
Automat 0.7.0
channels 2.1.1
channels-redis 2.2.1
configparser 3.5.0
constantly 15.1.0
daphne 2.2.1
Django 2.0.6
django-cors-headers 2.3.0
django-extensions 2.0.7
djangorestframework 3.8.2
djangorestframework-jwt 1.11.0
future 0.16.0
gunicorn 19.7.1
hyperlink 18.0.0
idna 2.7
incremental 17.5.0
jsonpickle 0.9.6
macholib 1.9
meld3 1.0.2
pefile 2017.11.5
pip 18.0
PyHamcrest 1.9.0
PyJWT 1.6.4
pytz 2018.5
setuptools 40.0.0
six 1.11.0
supervisor 4.0.0.dev0
txaio 2.10.0
tzlocal 1.5.1
websocket-client 0.48.0
wheel 0.31.1
どうすればデバッグできるか、または考えられる理由についてアドバイスしてください。
更新:
twisted with をインストールすることで動作させることができましたeasy_install
。requrements.txt
ただし、依存関係に加えて実行する必要があるため、これはまだ正しい解決策ではありません。
で動作させることはできませんpip install
。virtualenv には python が 1 つしかありません。
更新: requirements.txt
Django==2.0.6
django-extensions==2.0.7
channels==2.1.1
channels-redis==2.2.1
djangorestframework==3.8.2
djangorestframework-jwt==1.11.0
django-cors-headers==2.3.0
gunicorn==19.7.1
jsonpickle==0.9.6
six==1.11.0
websocket-client==0.48.0
apscheduler==3.5.1
pyinstaller==3.3.1
configparser==3.5.0
psycopg2==2.7.5
msgpack==0.5.6
twisted==18.7.0