gpt4 book ai didi

python - 使用脚本参数 ("env: No match."的 pycharm 远程调试问题)

转载 作者:太空宇宙 更新时间:2023-11-04 10:23:52 26 4
gpt4 key购买 nike

当我在没有任何参数的情况下在 pycharm 远程执行脚本时,它运行良好。但是,一旦我添加参数(脚本参数),我就会得到 env: No match. error while executing a debug session

我的论点看起来像

--arg1=value1 --arg2=value2

我尝试在不使用 '=' 的情况下设置它并得到相同的错误

这是调试器窗口中显示的完整命令:

ssh://null@localhost:2213/home/gamir/yuval/anaconda2/envs/tf_011b/bin/python -u /specific/a/home/cc/cs/yuvval/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 45437 --file /home/gamir/yuval/remote_py/nlteach/show_attend_and_tell/evaluation_wrapper.py --checkpoint_path=/home/gamir/yuval/nlteach/output/train/d=cub/imSD=11%imSP=rnd%tcSP=cvpr16/VSat --cnn_model=resnet_v1_50 --eval_dir=/home/gamir/yuval/nlteach/output/eval/d=cub/imSD=11%imSP=rnd%tcSP=cvpr16/VSat --input_file_list=/home/gamir/yuval/data/CUB_TF/d=cub/imSD=11%imSP=rnd%tcSP=cvpr16/learn.img_val.ids --image_set=img_val --images_split_seed=11 --teaching_split_type=cvpr16 --teaching_split_seed= --output_data_dir=/home/gamir/yuval/data/CUB_TF/ --images_split_type=rnd --dataset_raw_dir=/home/gamir/yuval/data/CUB_TF/raw/ --teach_set=learn --dataset_name=cub --num_examples_per_epoch=3125 --early_stop_metric=Perplexity/min --early_stop_patience=6 --multi_params_checkpoint_dir_depth=2 --input_file_pattern=/home/gamir/yuval/data/CUB_TF/d=cub/imSD=11%imSP=rnd%tcSP=cvpr16/TFRecords/learn.img_val-*.tfrecord --early_stop_min_epochs=3 --eval_interval_secs=1 --multi_params_evaluation_loop=True --gpu_memory_fraction=0.31

并且没有参数(成功)

ssh://null@localhost:2213/home/gamir/yuval/anaconda2/envs/tf_011b/bin/python -u /specific/a/home/cc/cs/yuvval/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 44571 --file /home/gamir/yuval/remote_py/nlteach/show_attend_and_tell/evaluation_wrapper.py

知道如何解决这个问题吗?

最佳答案

我设法解决了这个问题。远程解释器不喜欢我在其中一个参数上使用符号 *。我通过使用反斜杠 \* 而不是 *

转义来修复它

关于python - 使用脚本参数 ("env: No match."的 pycharm 远程调试问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42553273/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com