Pysvn installer fails to detect Python installation

后端 未结 4 1062
猫巷女王i
猫巷女王i 2021-01-17 20:58

I have Python 2.7.2 installed in the default location, C:\\Python27. I\'ve downloaded pysvn 2.7 from http://pysvn.tigris.org/project_downloads.html > Windows installation

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-17 21:46

    My case was a bit different. Since my Anaconda install was for Python 3.6, no matter what I did I wasn't able to install PySvn (never got detected).

    So since PySvn last release is for Python 3.5, I've created a conda env for Python 3.5.

    Open Anaconda prompt and type: conda create -n *myenv* python=3.5

    Then, open the win prompt and type regedit.

    In regedit, under HKEY_LOCAL_MACHINE\​SOFTWARE\Python\PythonCore\ I changed the name of the folder from 3.6 to 3.5. Additionally, in HKEY_LOCAL_MACHINE\​SOFTWARE\Python\PythonCore\3.5\InstallPath I changed the value of Anaconda's default folder to my Anaconda's env folder (C:\ProgramData\Anaconda3\env\*myenv*).

    Then I ran the installed and it worked fined. After installed, I remade the changes in the system registry to the original ones.

    Now I can import Pysvn, inside my conda env, without any problems.

提交回复
热议问题