[root@guk python-telegram-bot-8.1.1]# python twilio.py
Traceback (most recent call last):
File "twilio.py", line 5, in
from twilio.rest import Client
File "/root/python-telegram-bot-8.1.1/twilio.py", line 5, in
from twilio.rest import Client
ImportError: No module named 'twilio.rest'; 'twilio' is not a package
[root@guk python-telegram-bot-8.1.1]# which python
alias python='/usr/local/bin/python3'
/usr/local/bin/python3
You have new mail in /var/spool/mail/root
[root@guk python-telegram-bot-8.1.1]#
[root@guk python-telegram-bot-8.1.1]# which python
alias python='/usr/local/bin/python3'
/usr/local/bin/python3
[root@guk python-telegram-bot-8.1.1]# ls -lrt /usr/local/bin/python*
-rwxr-xr-x 1 root root 6294745 Nov 25 2017 /usr/local/bin/python2.7
-rwxr-xr-x 1 root root 1687 Nov 25 2017 /usr/local/bin/python2.7-config
-rwxr-xr-x 2 root root 9582890 Nov 25 2017 /usr/local/bin/python3.5m
-rwxr-xr-x 2 root root 9582890 Nov 25 2017 /usr/local/bin/python3.5
-rwxr-xr-x 1 root root 3057 Nov 25 2017 /usr/local/bin/python3.5m-config
lrwxrwxrwx 1 root root 9 Nov 25 2017 /usr/local/bin/python3 -> python3.5
lrwxrwxrwx 1 root root 17 Nov 25 2017 /usr/local/bin/python3.5-config -> python3.5m-config
lrwxrwxrwx 1 root root 16 Nov 25 2017 /usr/local/bin/python3-config -> python3.5-config
[root@guk twilio-twilio-python-5ce7ee7]# python3.5
Python 3.5.0 (default, Nov 25 2017, 14:56:15)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from twilio.rest import Client
>>
[root@guk twilio-twilio-python-5ce7ee7]# pwd
/root/twilio_manual/twilio-twilio-python-5ce7ee7
[root@guk twilio-twilio-python-5ce7ee7]#
[root@guk twilio-twilio-python-5ce7ee7]#
[root@guk twilio-twilio-python-5ce7ee7]# ls -lrt
total 164
-rw-r--r-- 1 root root 1740 Jun 11 02:47 VERSIONS.md
-rw-r--r-- 1 root root 749 Jun 11 02:47 UPGRADE.md
-rw-r--r-- 1 root root 161 Jun 11 02:47 tox.ini
drwxr-xr-x 4 root root 4096 Jun 11 02:47 tests
-rwxr-xr-x 1 root root 1943 Jun 11 02:47 setup.py
-rw-r--r-- 1 root root 138 Jun 11 02:47 setup.cfg
-rw-r--r-- 1 root root 55 Jun 11 02:47 requirements.txt
-rw-r--r-- 1 root root 7017 Jun 11 02:47 README.md
-rw-r--r-- 1 root root 1592 Jun 11 02:47 PULL_REQUEST_TEMPLATE.md
-rw-r--r-- 1 root root 120 Jun 11 02:47 MANIFEST.in
-rw-r--r-- 1 root root 2081 Jun 11 02:47 Makefile
-rw-r--r-- 1 root root 1088 Jun 11 02:47 LICENSE.md
-rw-r--r-- 1 root root 606 Jun 11 02:47 ISSUE_TEMPLATE.md
-rw-r--r-- 1 root root 731 Jun 11 02:47 index.rst
drwxr-xr-x 2 root root 4096 Jun 11 02:47 examples
drwxr-xr-x 3 root root 4096 Jun 11 02:47 docs
-rw-r--r-- 1 root root 173 Jun 11 02:47 Dockerfile
-rw-r--r-- 1 root root 6151 Jun 11 02:47 CONTRIBUTING.md
-rw-r--r-- 1 root root 3251 Jun 11 02:47 CODE_OF_CONDUCT.md
-rw-r--r-- 1 root root 58296 Jun 11 02:47 CHANGES.md
-rw-r--r-- 1 root root 1387 Jun 11 02:47 AUTHORS.md
drwxr-xr-x 2 root root 4096 Jun 21 14:32 twilio.egg-info
drwxr-xr-x 4 root root 4096 Jun 21 14:32 build
drwxr-xr-x 2 root root 4096 Jun 21 14:32 dist
drwxr-xr-x 8 root root 4096 Jun 21 14:36 twilio
[root@guk twilio-twilio-python-5ce7ee7]# /usr/local/bin/python3.5 setup.py install
Using /usr/local/lib/python3.5/site-packages/chardet-3.0.4-py3.5.egg
Finished processing dependencies for twilio==6.42.0
No comments:
Post a Comment