python3 issues

16 阅读1分钟…

Just for record python3

pip install timeout

pip3 install lxml

raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='', port=443): Read timed out.

pip3 install -i lxml

'int' object does not support indexing

pgsql = """
SELECT id, employee_count FROM company
WHERE id = %s
pg_cursor.execute(pgsql, (row["member_id"]))

pg_cursor.execute(pgsql, (row["member_id"],))

not all arguments converted during string formatting

Incorrect number of arguments

most likely due to a circular import

python3 Traceback (most recent call last): File "/Users/sai/Documents/user-sai/ignore/", line 1, in import marisa_trie File "/Users/sai/Documents/user-sai/ignore/", line 3, in trie = marisa_trie.Trie([u'key1', u'key2', u'key12']) AttributeError: partially initialized module 'marisa_trie' has no attribute 'Trie' (most likely due to a circular import)

rename filename to another name