What does '~' at the end of file name mean

2020-04-17 06:51发布

Im having a very odd problem. Im trying to install a Python program.

Im using python setup.py install

The setup.py file states:

install_requires=[
    "Pylons==0.9.7",

The setup.py~ file states:

install_requires=[
    "Pylons==0.10",

This is causing an issue when Im trying to install as the program tries to find Pylons 0.9.7 and install it as a dependency. It then errors with:

error: Installed distribution Pylons 0.9.7 conflicts with requirement Pylons==0.10

My question is what does having the tilde '~' at the end of the file mean? As far as I was aware, it meant that the file is open and being edited somewhere and this is a temp version, is that not correct?

标签: python
1条回答
放荡不羁爱自由
2楼-- · 2020-04-17 07:53

It's a backup file -- many editors save the previous version of your file under the same name with a ~ appended.

查看更多
登录 后发表回答