当前位置:首页 > 数据库 > python开发环境_windows系统安装_错误记录

python开发环境_windows系统安装_错误记录

2022年11月08日 09:37:26数据库6

 

1 安装python编译器2.7.11版本

  (安装包自带pip,setuptools,依赖,会将pip,setuptools安装到自己的类库中)

    配置环境变量:

  python开发环境_windows系统安装_错误记录 _ JavaClub全栈架构师技术笔记

 

   配置python_home,然后加入path中,为了能在cmd中使用python命令

  python开发环境_windows系统安装_错误记录 _ JavaClub全栈架构师技术笔记

 

  配置%python_home%/Scripts为了能用pip命令

2 安装pycharm代码编辑器

   网上有注册码,注册使用

3 安装程序需要的安装包

python开发环境_windows系统安装_错误记录 _ JavaClub全栈架构师技术笔记

 pip安装

 pip最大的好处就是能帮助你下载包,以及依赖包

因为pip默认源链接不上,所以修改为了国内豆瓣的源,然后在cmd中安装依赖包,进入python安装目录下的Script目录中开启命令行窗口,下载资源

C:\Users\Administrator>pip install cx_ORacle
Collecting cx-ORacle
Operation cancelled by user
Traceback (most recent call last):
  File "d:\python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "d:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "D:\Python27\Scripts\pip.exe\__main__.py", line 9, in <module>
  File "d:\python27\lib\site-packages\pip\__init__.py", line 217, in main
    return command.main(cmd_args)
  File "d:\python27\lib\site-packages\pip\basecommand.py", line 248, in main
    pip_version_check(session)
  File "d:\python27\lib\site-packages\pip\utils\outdated.py", line 126, in pip_version_check
    headers={"Accept": "application/json"},
  File "d:\python27\lib\site-packages\pip\_vendor\requests\sessions.py", line 477, in get
    return self.request('GET', url, **kwargs)
  File "d:\python27\lib\site-packages\pip\download.py", line 373, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "d:\python27\lib\site-packages\pip\_vendor\requests\sessions.py", line 456, in request
    prep.url, proxies, stream, verify, cert
  File "d:\python27\lib\site-packages\pip\_vendor\requests\sessions.py", line 614, in merge_environment_settings
    env_proxies = get_environ_proxies(url) or {}
  File "d:\python27\lib\site-packages\pip\_vendor\requests\utils.py", line 534, in get_environ_proxies
    if should_bypass_proxies(url):
  File "d:\python27\lib\site-packages\pip\_vendor\requests\utils.py", line 523, in should_bypass_proxies
    bypass = proxy_bypass(netloc)
  File "d:\python27\lib\urllib.py", line 1610, in proxy_bypass
    return proxy_bypass_registry(host)
  File "d:\python27\lib\urllib.py", line 1577, in proxy_bypass_registry
    fqdn = socket.getfqdn(rawHost)
  File "d:\python27\lib\socket.py", line 141, in getfqdn
    hostname, aliases, ipaddrs = gethostbyaddr(name)
KeyboardInterrupt

C:\Users\Administrator>^D^D
'' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>pip install cx_Oracle
Collecting cx-Oracle
  Downloading cx_Oracle-6.0.2.tar.gz (210kB)
    100% |████████████████████████████████| 212kB 142kB/s
Installing collected packages: cx-Oracle
  Running setup.py install for cx-Oracle
    Complete output from command d:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\admini~1\\appdata\\local\\temp\\pip-build-fbhy
d c:\users\admini~1\appdata\local\temp\pip-re3st3-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'cx_Oracle' extension
    error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27

    ----------------------------------------
Command "d:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\admini~1\\appdata\\local\\temp\\pip-build-fbhynt\\cx-Oracle\\setup.py'
ata\local\temp\pip-re3st3-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\admini~1\appdata\lo
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\Administrator>cd D:
D:\

C:\Users\Administrator>D:

D:\>cd Python27

D:\Python27>ls
'ls' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

D:\Python27>pip install pycrypto
Collecting pycrypto
  Downloading pycrypto-2.6.1.tar.gz (446kB)
    100% |████████████████████████████████| 446kB 60kB/s
Installing collected packages: pycrypto
  Running setup.py install for pycrypto
    Complete output from command d:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\admini~1\\appdata\\local\\temp\\pip-build-8e08
 c:\users\admini~1\appdata\local\temp\pip-cbrdec-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\Crypto
    copying lib\Crypto\pct_warnings.py -> build\lib.win-amd64-2.7\Crypto
    copying lib\Crypto\__init__.py -> build\lib.win-amd64-2.7\Crypto
    creating build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\hashalgo.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\HMAC.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\MD2.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\MD4.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\MD5.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\RIPEMD.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\SHA.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\SHA224.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\SHA256.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\SHA384.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\SHA512.py -> build\lib.win-amd64-2.7\Crypto\Hash
    copying lib\Crypto\Hash\__init__.py -> build\lib.win-amd64-2.7\Crypto\Hash
    creating build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\ARC4.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\blockalgo.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\CAST.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\DES.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\DES3.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\PKCS1_OAEP.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\PKCS1_v1_5.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\XOR.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    copying lib\Crypto\Cipher\__init__.py -> build\lib.win-amd64-2.7\Crypto\Cipher
    creating build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\asn1.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\Counter.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\number.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\py21compat.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\py3compat.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\randpool.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\RFC1751.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\winrandom.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\_number_new.py -> build\lib.win-amd64-2.7\Crypto\Util
    copying lib\Crypto\Util\__init__.py -> build\lib.win-amd64-2.7\Crypto\Util
    creating build\lib.win-amd64-2.7\Crypto\Random
    copying lib\Crypto\Random\random.py -> build\lib.win-amd64-2.7\Crypto\Random
    copying lib\Crypto\Random\_UserFriendlyRNG.py -> build\lib.win-amd64-2.7\Crypto\Random
    copying lib\Crypto\Random\__init__.py -> build\lib.win-amd64-2.7\Crypto\Random
    creating build\lib.win-amd64-2.7\Crypto\Random\Fortuna
    copying lib\Crypto\Random\Fortuna\FortunaAccumulator.py -> build\lib.win-amd64-2.7\Crypto\Random\Fortuna
    copying lib\Crypto\Random\Fortuna\FortunaGenerator.py -> build\lib.win-amd64-2.7\Crypto\Random\Fortuna
    copying lib\Crypto\Random\Fortuna\SHAd256.py -> build\lib.win-amd64-2.7\Crypto\Random\Fortuna
    copying lib\Crypto\Random\Fortuna\__init__.py -> build\lib.win-amd64-2.7\Crypto\Random\Fortuna
    creating build\lib.win-amd64-2.7\Crypto\Random\OSRNG
    copying lib\Crypto\Random\OSRNG\fallback.py -> build\lib.win-amd64-2.7\Crypto\Random\OSRNG
    copying lib\Crypto\Random\OSRNG\nt.py -> build\lib.win-amd64-2.7\Crypto\Random\OSRNG
    copying lib\Crypto\Random\OSRNG\posix.py -> build\lib.win-amd64-2.7\Crypto\Random\OSRNG
    copying lib\Crypto\Random\OSRNG\rng_base.py -> build\lib.win-amd64-2.7\Crypto\Random\OSRNG
    copying lib\Crypto\Random\OSRNG\__init__.py -> build\lib.win-amd64-2.7\Crypto\Random\OSRNG
    creating build\lib.win-amd64-2.7\Crypto\SelfTest
    copying lib\Crypto\SelfTest\st_common.py -> build\lib.win-amd64-2.7\Crypto\SelfTest
    copying lib\Crypto\SelfTest\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\common.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_AES.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_ARC2.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_ARC4.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_CAST.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_DES.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_DES3.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\test_XOR.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    copying lib\Crypto\SelfTest\Cipher\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Cipher
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\common.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_HMAC.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_MD2.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_MD4.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_MD5.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_RIPEMD.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_SHA.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_SHA224.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_SHA256.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_SHA384.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\test_SHA512.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    copying lib\Crypto\SelfTest\Hash\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Hash
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\Protocol
    copying lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Protocol
    copying lib\Crypto\SelfTest\Protocol\test_chaffing.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Protocol
    copying lib\Crypto\SelfTest\Protocol\test_KDF.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Protocol
    copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Protocol
    copying lib\Crypto\SelfTest\Protocol\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Protocol
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\PublicKey
    copying lib\Crypto\SelfTest\PublicKey\test_DSA.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\PublicKey
    copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\PublicKey
    copying lib\Crypto\SelfTest\PublicKey\test_importKey.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\PublicKey
    copying lib\Crypto\SelfTest\PublicKey\test_RSA.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\PublicKey
    copying lib\Crypto\SelfTest\PublicKey\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\PublicKey
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\Random
    copying lib\Crypto\SelfTest\Random\test_random.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random
    copying lib\Crypto\SelfTest\Random\test_rpoolcompat.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random
    copying lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random
    copying lib\Crypto\SelfTest\Random\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\Random\Fortuna
    copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\Fortuna
    copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\Fortuna
    copying lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\Fortuna
    copying lib\Crypto\SelfTest\Random\Fortuna\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\Fortuna
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\Random\OSRNG
    copying lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\OSRNG
    copying lib\Crypto\SelfTest\Random\OSRNG\test_generic.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\OSRNG
    copying lib\Crypto\SelfTest\Random\OSRNG\test_nt.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\OSRNG
    copying lib\Crypto\SelfTest\Random\OSRNG\test_posix.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\OSRNG
    copying lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\OSRNG
    copying lib\Crypto\SelfTest\Random\OSRNG\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Random\OSRNG
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\Util
    copying lib\Crypto\SelfTest\Util\test_asn1.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Util
    copying lib\Crypto\SelfTest\Util\test_Counter.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Util
    copying lib\Crypto\SelfTest\Util\test_number.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Util
    copying lib\Crypto\SelfTest\Util\test_winrandom.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Util
    copying lib\Crypto\SelfTest\Util\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Util
    creating build\lib.win-amd64-2.7\Crypto\SelfTest\Signature
    copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Signature
    copying lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Signature
    copying lib\Crypto\SelfTest\Signature\__init__.py -> build\lib.win-amd64-2.7\Crypto\SelfTest\Signature
    creating build\lib.win-amd64-2.7\Crypto\Protocol
    copying lib\Crypto\Protocol\AllOrNothing.py -> build\lib.win-amd64-2.7\Crypto\Protocol
    copying lib\Crypto\Protocol\Chaffing.py -> build\lib.win-amd64-2.7\Crypto\Protocol
    copying lib\Crypto\Protocol\KDF.py -> build\lib.win-amd64-2.7\Crypto\Protocol
    copying lib\Crypto\Protocol\__init__.py -> build\lib.win-amd64-2.7\Crypto\Protocol
    creating build\lib.win-amd64-2.7\Crypto\PublicKey
    copying lib\Crypto\PublicKey\DSA.py -> build\lib.win-amd64-2.7\Crypto\PublicKey
    copying lib\Crypto\PublicKey\ElGamal.py -> build\lib.win-amd64-2.7\Crypto\PublicKey
    copying lib\Crypto\PublicKey\pubkey.py -> build\lib.win-amd64-2.7\Crypto\PublicKey
    copying lib\Crypto\PublicKey\RSA.py -> build\lib.win-amd64-2.7\Crypto\PublicKey
    copying lib\Crypto\PublicKey\_DSA.py -> build\lib.win-amd64-2.7\Crypto\PublicKey
    copying lib\Crypto\PublicKey\_RSA.py -> build\lib.win-amd64-2.7\Crypto\PublicKey
    copying lib\Crypto\PublicKey\_slowmath.py -> build\lib.win-amd64-2.7\Crypto\PublicKey
    copying lib\Crypto\PublicKey\__init__.py -> build\lib.win-amd64-2.7\Crypto\PublicKey
    creating build\lib.win-amd64-2.7\Crypto\Signature
    copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win-amd64-2.7\Crypto\Signature
    copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win-amd64-2.7\Crypto\Signature
    copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-2.7\Crypto\Signature
    running build_ext
    building 'Crypto.Random.OSRNG.winrandom' extension
    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
    error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27
  ----------------------------------------

Command "d:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\admini~1\\appdata\\local\\temp\\pip-build-8e08bh\\pycrypto\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\admini~1\appda
ta\local\temp\pip-cbrdec-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\admini~1\appdata\local\temp\pip-build-8e08bh\pycrypto
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.


D:\Python27>python -m pip install  --upgrade pip
Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 79kB/s
Installing collected packages: pip
  Found existing installation: pip 7.1.2
    Uninstalling pip-7.1.2:
      Successfully uninstalled pip-7.1.2
Successfully installed pip-9.0.1

D:\Python27>pip install cx_Oracle
Collecting cx_Oracle
  Downloading cx_Oracle-6.0.2-cp27-cp27m-win_amd64.whl (131kB)
    100% |████████████████████████████████| 133kB 104kB/s
Installing collected packages: cx-Oracle
Successfully installed cx-Oracle-6.0.2

D:\Python27>pip install Elasticsearch
Collecting Elasticsearch
  Downloading elasticsearch-5.4.0-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 40kB/s
Collecting urllib3<2.0,>=1.8 (from Elasticsearch)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
    100% |████████████████████████████████| 133kB 58kB/s
Installing collected packages: urllib3, Elasticsearch
Successfully installed Elasticsearch-5.4.0 urllib3-1.22

D:\Python27>pip install BlockingScheduler
Collecting BlockingScheduler
  Could not find a version that satisfies the requirement BlockingScheduler (from versions: )
No matching distribution found for BlockingScheduler

D:\Python27>pip install apscheduler
Collecting apscheduler
  Downloading APScheduler-3.3.1-py2.py3-none-any.whl (56kB)
    100% |████████████████████████████████| 61kB 95kB/s
Collecting pytz (from apscheduler)
  Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
    100% |████████████████████████████████| 491kB 167kB/s
Collecting funcsigs; python_version == "2.7" (from apscheduler)
  Downloading funcsigs-1.0.2-py2.py3-none-any.whl
Collecting tzlocal>=1.2 (from apscheduler)
  Downloading tzlocal-1.4.tar.gz
Collecting six>=1.4.0 (from apscheduler)
  Downloading six-1.11.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=0.7 in d:\python27\lib\site-packages (from apscheduler)
Collecting futures; python_version == "2.7" (from apscheduler)
  Downloading futures-3.1.1-py2-none-any.whl
Installing collected packages: pytz, funcsigs, tzlocal, six, futures, apscheduler
  Running setup.py install for tzlocal ... done
Successfully installed apscheduler-3.3.1 funcsigs-1.0.2 futures-3.1.1 pytz-2017.2 six-1.11.0 tzlocal-1.4

D:\Python27>

 4 pycharm 中项目配置python编译环境

    经常会出现的一个问题就是2.X,3.Xpython 都安装了,一定要指定版本,以防2.X 版本的pip install 安装了某个依赖包,但是项目使用了3.X的python编译环境。

   不仔细,然后报了错误,然后去网上东查西查,各种解决方法统统用上,结果白了白~~

5 越是简单的东西,越是会大意。仔细认真是规避麻烦的必要途径~

6 出现错误格外惊喜

python开发环境_windows系统安装_错误记录 _ JavaClub全栈架构师技术笔记

 

执行:conn = cx_Oracle.connect('aaa', 'aaa', tns)提示的DPI-1047:64-bit Oracle Client library cannot be loaded

 

7 本地配置plsql+oracleclient链接远程客户端,

 然后安装cx_Oracle-5.3-11g.win-amd64-py2.7.exe文件,那个错误不报了,接着报

 python开发环境_windows系统安装_错误记录 _ JavaClub全栈架构师技术笔记

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。

网上提示我的oracle clinet是32位的,所以,又安装Instant Client Setup.exe 

安装Instant Client Setup.exe,但是卡在最后一点。安装了2,3次也都是如此,直接强制停止运行。

然后在cmd试试,结果成了。

(操作搞成这样,我也是服了这个东西了)

(参考:http://www.cnblogs.com/sola-tester/p/4328881.html#3815238,我很完美的一个都没避开他文章中的问题)

作者:死磕战队
来源链接:https://www.cnblogs.com/renguiyouzhi/p/7690733.html

版权声明:
1、JavaClub(https://www.javaclub.cn)以学习交流为目的,由作者投稿、网友推荐和小编整理收藏优秀的IT技术及相关内容,包括但不限于文字、图片、音频、视频、软件、程序等,其均来自互联网,本站不享有版权,版权归原作者所有。

2、本站提供的内容仅用于个人学习、研究或欣赏,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯相关权利人及本网站的合法权利。
3、本网站内容原作者如不愿意在本网站刊登内容,请及时通知本站(javaclubcn@163.com),我们将第一时间核实后及时予以删除。


本文链接:https://www.javaclub.cn/database/68452.html

标签: Python
分享给朋友:

“python开发环境_windows系统安装_错误记录” 的相关文章

Python 图

Python 图

1. 前言 因无向、无加权图的任意顶点之间的最短路径由顶点之间的边数决定,可以直接使用原始定义的广度优先搜索算法查找。 但是,无论是有向、还是无向,只要是加权图,最短路径长度的定义是:起点到终点之间所有路径中权重总和最小的那条路径。 如下图所示,A 到 C 的最短路径...

widows下 python环境变量配置

widows下 python环境变量配置 便于cmd命令行操作,例如:直接进入Python解释器环境、使用pip安装模块等。 作者:hello-Jesson 来源链接:https://www.cnblogs.com/hello...

python2和python3的pip安装

指定哪个python安装pippython2:  python2 -m pip install lettuce python3:  python3 -m pip install lettuce 强...

VSCode的Python扩展下程序运行的几种方式与环境变量管理

在VSCode中编写Python程序时,由于有些地方要使用环境变量,但是发现设置的环境变量有时不起作用,花了点时间研究了一下,过程不表,直接说结论。 首先,环境变量的设置,Python扩展中有三种方式: 直接设置系统环境变量,或在使用命令行启动VSCode时临时先...

numpy的安装和使用

numpy的安装和使用

           自定义安装Python(记得勾选环境变量)后,首次使用IDLE或者DOC执行python使用numpy时会报如下错误:   这说明安装python过程中并未安装numpy,此时需要手...

python环境变量自动配置脚本(setx使用)

前言 setx不是windows系统自带的工具,需要到微软官网下载,但是有的系统也会自带。(是官方提供的,可放心食用) set和setx都可以用来配置环境变量。他们的不同点在于,set只是临时的修改环境变量,控制台关闭之后效果就消失,setx则可以永久改变环境变量(自动修改...

在Java中调用Python

在Java中调用Python

写在前面 在微服务架构大行其道的今天,对于将程序进行嵌套调用的做法其实并不可取,甚至显得有些愚蠢。当然,之所以要面对这个问题,或许是因为一些历史原因,或者仅仅是为了简单。恰好我在项目中就遇到了这个问题,需要在Java程序中调用Python程序。关于在Java中调用Python程序...

环境变量导致系统命令不能用

今天下午,为Linux服务器配置环境变量,结果玩大了。环境变量崩了。 各种命令都不能用了,直接cd 和export能用。结果从其他的机器上找了一个写好的环境变量。重新赋值结果ok。 辛亏不知glibc,要是这玩意,登陆都登陆不上。没救,只能重装系统。...

Anaconda安装之环境变量配置

Anaconda安装之环境变量配置

1.在此之前先把python安装完成,并配置好环境变量。Anaconda默认大家都已经安装完成,没安装的可以直接去Anaconda官网下载(网速较慢,不建议),这里可以去清华大学开源软件镜像站下载。 2.记住Anaconda安装的目录:   (1)Anaconda安装路径(...

Python安装Windows的pip包

1.到https://www.python.org/downloads/ 下载python包安装python 2.到https://pypi.python.org/pypi/pip#downloads 下载pip的安装包,解压到当前文件夹 3.在DOS命令窗口下输入安装,进...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。