麻线显示 "No such file or directory" 错误
twine showing "No such file or directory" error
我正在 运行安装 Ubuntu 18.04 系统,最近安装了一个新的 ssd 并将 $HOME 映射到 ssd,然后将现有文件移动到它上面。不知何故,在那个过程中我搞砸了我的 PYTHONPATH,我相信。
如果我 运行 twine upload dist/*
我得到以下错误:
bash: /home/henry/.local/bin/twine: No such file or directory
如果我 运行 pip install twine
,我得到以下输出:
Requirement already satisfied: twine in /usr/local/lib/python2.7/dist-packages (1.12.1)
Requirement already satisfied: setuptools>=0.7.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (39.1.0)
Requirement already satisfied: pkginfo>=1.4.2 in /home/henry/.local/lib/python2.7/site-packages (from twine) (1.4.2)
Requirement already satisfied: readme-renderer>=21.0 in /usr/local/lib/python2.7/dist-packages (from twine) (24.0)
Requirement already satisfied: requests!=2.15,!=2.16,>=2.5.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (2.18.4)
Requirement already satisfied: tqdm>=4.14 in /home/henry/.local/lib/python2.7/site-packages (from twine) (4.23.3)
Requirement already satisfied: requests-toolbelt>=0.8.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (0.8.0)
Requirement already satisfied: Pygments in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (2.2.0)
Requirement already satisfied: six in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (1.11.0)
Requirement already satisfied: bleach>=2.1.0 in /usr/local/lib/python2.7/dist-packages (from readme-renderer>=21.0->twine) (3.0.2)
Requirement already satisfied: docutils>=0.13.1 in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (0.14)
Requirement already satisfied: idna<2.7,>=2.5 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2018.1.18)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (3.0.4)
Requirement already satisfied: webencodings in /usr/lib/python2.7/dist-packages (from bleach>=2.1.0->readme-renderer>=21.0->twine) (0.5)
echo "PYTHONPATH=$PYTHONPATH"
给我 PYTHONPATH=
我该怎么做才能纠正?
使用
python -m twine upload dist/*
我正在 运行安装 Ubuntu 18.04 系统,最近安装了一个新的 ssd 并将 $HOME 映射到 ssd,然后将现有文件移动到它上面。不知何故,在那个过程中我搞砸了我的 PYTHONPATH,我相信。
如果我 运行 twine upload dist/*
我得到以下错误:
bash: /home/henry/.local/bin/twine: No such file or directory
如果我 运行 pip install twine
,我得到以下输出:
Requirement already satisfied: twine in /usr/local/lib/python2.7/dist-packages (1.12.1)
Requirement already satisfied: setuptools>=0.7.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (39.1.0)
Requirement already satisfied: pkginfo>=1.4.2 in /home/henry/.local/lib/python2.7/site-packages (from twine) (1.4.2)
Requirement already satisfied: readme-renderer>=21.0 in /usr/local/lib/python2.7/dist-packages (from twine) (24.0)
Requirement already satisfied: requests!=2.15,!=2.16,>=2.5.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (2.18.4)
Requirement already satisfied: tqdm>=4.14 in /home/henry/.local/lib/python2.7/site-packages (from twine) (4.23.3)
Requirement already satisfied: requests-toolbelt>=0.8.0 in /home/henry/.local/lib/python2.7/site-packages (from twine) (0.8.0)
Requirement already satisfied: Pygments in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (2.2.0)
Requirement already satisfied: six in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (1.11.0)
Requirement already satisfied: bleach>=2.1.0 in /usr/local/lib/python2.7/dist-packages (from readme-renderer>=21.0->twine) (3.0.2)
Requirement already satisfied: docutils>=0.13.1 in /home/henry/.local/lib/python2.7/site-packages (from readme-renderer>=21.0->twine) (0.14)
Requirement already satisfied: idna<2.7,>=2.5 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2018.1.18)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/henry/.local/lib/python2.7/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (3.0.4)
Requirement already satisfied: webencodings in /usr/lib/python2.7/dist-packages (from bleach>=2.1.0->readme-renderer>=21.0->twine) (0.5)
echo "PYTHONPATH=$PYTHONPATH"
给我 PYTHONPATH=
我该怎么做才能纠正?
使用
python -m twine upload dist/*