我正在尝试在遇到一些困难后在我的Windows 10计算机上重新安装oTree。我卸载了oTree和Python,并重新安装了Python,并尝试重新安装oTree,两者都使用最新版本(Python 3.6.4,oTree 2.0.18)。当我从适当的目录(C:\Users\Sarah
)运行命令otree startproject otree
时,我执行Python安装和oTree安装后出现问题。它拒绝运行如下:
C:\Users\Sarah>otree startproject otree
Include sample games? (y or n): y
CommandError: 'otree' conflicts with the name of an existing Python module and cannot be used as a project name. Please try another name.
但是,C:\ Users \ Sarah
中没有otree文件夹我在过去使用最新版本的oTree(比如两周前)从这个位置安装了它,并且一切正常。我已经尝试了许多事情,通常很多次,以使这个工作,但继续回到相同的错误。我尝试过的事情:
如果有帮助,这里是版本信息:
C:\Users\Sarah>otree --version
oTree: 2.0.18 - Django: 1.11.2
C:\Users\Sarah>pip3 -V
pip 9.0.1 from c:\users\sarah\appdata\local\programs\python\python36-32\lib\site-packages (python 3.6)
如果有人提出任何建议,我将不胜感激。
致以最诚挚的问候,
-Sarah
答案 0 :(得分:0)
事实证明它是区分大小写的,而“otree”是一个保留字,所以必须做“otree startproject oTree”。