ubuntu18.04
问题1:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443):
terminal中
export http_proxy="http://127.0.0.1:12333"
export https_proxy="http://127.0.0.1:12333"
#cmd
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
或者
set ALL_PROXY=http://127.0.0.1:1080
问题2:
Malformed version string ‘~‘: invalid character(s).
问题描述
conda环境中报错Malformed version string ‘~’: invalid character(s).
解决
更新conda
conda upgrade -n base -c defaults --override-channels conda
问题3:
切换环境
source activate comet
python scripts/evaluate/evaluate_atomic_generation_model.py --split 'dev' --model_name '/home/zoe/下载/comet-commonsense/models/atomic-generation/iteration-500-50000/transformer/categories_oEffect#oReact#oWant#xAttr#xEffect#xIntent#xNeed#xReact#xWant-maxe1_17-maxe2_35-maxr_1/model_transformer-nL_12-nH_12-hSize_768-edpt_0.1-adpt_0.1-rdpt_0.1-odpt_0.1-pt_gpt-afn_gelu-init_pt-vSize_40542/exp_generation-seed_123-l2_0.01-vl2_T-lrsched_warmup_linear-lrwarm_0.002-clip_1-loss_nll-b2_0.999-b1_0.9-e_1e-08/bs_1-smax_40-sample_greedy-numseq_1-gs_1000-es_10000-categories_oEffect#oReact#oWant#xAttr#xEffect#xIntent#xNeed#xReact#xWant/6.25e-05_adam_16_43500.pickle'