Julia#設置國內浙大,中科大鏡像站(#Set Chinese Mirrors of Package for Julia Version 1.3.0)

Note: It is supposed that you have installed Julia which version is more than or equals 1.0 on your PC.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.0 (2019-xx-xx)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

In the console, we firstly step into the pkg-manager by ‘]’ as it reminds us.
If it’s the first time you use the pkg-manager, you’d better activate that.

(v1.3) pkg> activate
Activating environment at `C:\Users\xxx\.julia\environments\v1.3\Project.toml`

Then following is all the work. Go on step by step, please.

(v1.3) pkg> add PkgMirrors

After the installation of PkgMirrors, go back to the console interface.

julia> import PkgMirrors
julia> PkgMirrors.availables()

There will be some information showing continuingly.

2-element Array{String,1}:
 "ZJU" 
 "USTC"

I have tried the mirror of “USTC”, leaving me a bad impression so that I will choose ‘‘ZJU’’ to demonstrate this time. (But ZJU approximately has turned wrong recently

julia> PkgMirrors.setmirror("ZJU")
julia> import PkgMirrors

The last thing is to update in the pkg-manager.

(v1.3) pkg> update

If you want to change your mirror for another, repeating from the step “setmirror” is fine.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章