我正在设置一个新服务器并且python没有正确安装任何模块。这是debian 8,我似乎无法让它工作。我不确定它是否存在SSL问题或其他问题。
有人有什么想法吗?
DECLARE
v_klantNR number;
BEGIN
SELECT CUSTOMER_ID INTO v_klantNR FROM TOCBA_CUSTOMERS WHERE FIRSTNAME = :P1010_FIRSTNAME AND LASTNAME = :P1010_LASTNAME;
SELECT
BSN,
ID_NUMBER,
ID_TYPE,
ID_FILE,
SIGNATURE
INTO
:P1010_BSN,
:P1010_IDNUMBER,
:P1010_IDTYPE,
:P1010_GEUPLOAD_ID, -- This is the one
:P1010_GEUPLOAD_HANDTEKENING -- This is the other one
FROM TOCBA_IDENTIFICATION
WHERE CUSTOMER_ID = v_klantNR;
END
编辑:以下是我尝试运行get-pip脚本时发生的事情。
$ pip install paramiko
Downloading/unpacking paramiko
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 694, in get_page
req, link, "connection error: %s" % exc, url,
TypeError: __str__ returned non-string (type Error)
$ pip install XlsxWriter
Downloading/unpacking XlsxWriter
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 694, in get_page
req, link, "connection error: %s" % exc, url,
TypeError: __str__ returned non-string (type Error)
答案 0 :(得分:0)
试试这个:
cd /tmp
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
rm get-pip.py -f
然后:
python -m pip install paramiko XlsxWriter