windows 10 32bit configuration Python programming environment

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/wangbingfengf98/article/details/102759498

 

Verify that the system architecture

  • Click on the lower left corner of the desktop search button, enter the  cmd run command-line interface (Command Prompt);
  • The command line interface input  wmic CPU get DataWidth ↩︎, the CPU returns the framework 64, or 32;
  • Enter the command line interface  wmic OS get OSArchitecture ↩︎, it returns the Windows operating system architecture, 64 or 32.

PowerShell version confirmed

PowerShell is a command-line environment enhanced under Windows, but also our future use of the main command-line interface. The following operation is continued in the open on top of the command line interface:

  • Enter the command line interface  powershell ↩︎, command line interface noticed the beginning of the line prompted the  PS words;
  • Enter the command line interface  $PSVersionTable.PSVersion.Major ↩︎.

Installation command-line interface ConEmu

  • Enter  ConEmu home page , click the Download button, choose to download "ConEmu Alpha, Installer (32- bit, 64-bit)" This installer version;
  • Run the installer downloaded ConEmu (usually called  ConEmuSetup.xxxxx.exe), you choose to install the 64-bit x64 (64-bit) version to check if the previous version of Windows, or select x86 (32-bit) version; installing some anti-virus software may report a virus warning, please feel free to continue the installation, which is false .

After installation interface:

> scoop update
Scoop uses Git to update itself. Run 'scoop install git' and try again.
> scoop install git
It looks like a previous installation of git failed.
Run 'scoop uninstall git' before retrying the install.
无法从传输连接中读取数据: 你的主机中的软件中止了一个已建立的连接。。
URL https://github.com/git-for-windows/git/releases/download/v2.23.0.windows.1/PortableGit-2.23.0-32-bit.7z.exe#/dl.7z is not valid

I tried it for a long time(about 15 hours). 

The solution is:

  1. add 
    192.30.253.112  github.com
    192.30.253.113  github.com
    to your hosts file
  2. scoop install aria2
  3.  install git
    > scoop uninstall git
    Uninstalling 'git' ().
    'git' was uninstalled.
    > scoop install git

     

  4. repeat step 3 until the installation is successful,make sure your network is stable

aria2's one feature

Multi-Connection Download. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth. Really speeds up your download experience.

 

another solution :

  •  download right PortableGit-2.23.0-32-bit.7z.exe for your computer
  • put it in your scoop/cache folder
> scoop uninstall git
Uninstalling 'git' ().
'git' was uninstalled.
> scoop install git
> scoop update
Updating Scoop...
Updating 'main' bucket...
Checking repo... ok
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
ffatal: the remote end hung up unexpectedly
atal: early EOF
fatal: index-pack failed
The main bucket was added successfully.
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Scoop was updated successfully!

First execution of scoop update, please be patient and wait for the execution to succeed. 

 

code .
code : 无法将“code”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保
路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ code .
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (code:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

above error's solution is:

restart PowerShell, then re-execute code .

 

pip install jupyterlab, it prompt the following error

scoop\apps\python37\current\lib\site-packages\pip\_vendor\urllib3\response.py", line 430, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

default timeout is 15 sec. 

the solution:

pip install jupyterlab --default-timeout 100

 references:

1. https://github.com/neolee/pilot/blob/master/x1-setup.md

2. https://aria2.github.io/

3. https://github.com/git-for-windows/git/releases/tag/v2.23.0.windows.1

Guess you like

Origin blog.csdn.net/wangbingfengf98/article/details/102759498