Conda安装requirements里面依赖出现ERROR: No matching distribution found for opencc==1.1.6

环境:

Python 3.11.5

Bert-VITS2.4

opencc 1.1.7

Conda 虚拟环境

问题描述:

Conda安装requirements里面依赖出现ERROR: No matching distribution found for opencc==1.1.6

ERROR: Ignored the following versions that require a different python version: 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10; 0.55.0 Requires-Python >=3.7,<3.11; 0.55.0rc1 Requires-Python >=3.7,<3.11; 0.55.1 Requires-Python >=3.7,<3.11; 0.55.2 Requires-Python >=3.7,<3.11; 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11
ERROR: Could not find a version that satisfies the requirement opencc==1.1.6 (from versions: 0.1, 0.2, 1.1.0.post1, 1.1.1, 1.1.7)
ERROR: No matching distribution found for opencc==1.1.6

在这里插入图片描述

解决方案:

opencc1.16它支持 Python 3.9 及以下版本。对于 Python 3.11,可能还没有与之兼容的 OpenCC 版本可用。

需要在 Python 3.11 上使用 OpenCC,可以尝试以下解决方法

1.打开requirements把opencc== 1.16改成1.17保存文本
在这里插入图片描述
2.再次执行安装完成

 pip install -r requirements.txt

在这里插入图片描述在这里插入图片描述

3.还可以降级python版本

使用 Conda 创建了一个名为 "vits" 的 Python 环境,并且选择了 Python 3.11.5 版本,现在想回退到 Python 3.9,可以按照以下步骤进行操作:

    激活环境:打开命令提示符或终端,运行以下命令激活 "vits" 环境:

conda activate vits

移除环境:运行以下命令移除当前的 "vits" 环境(注意:这将删除该环境及其所有已安装的包):

conda env remove --name vits

创建新环境:运行以下命令创建一个新的 "vits" 环境,并选择 Python 3.9 版本:

conda create --name vits python=3.9

安装依赖包:如果你的项目有依赖包,可以在创建新环境后使用 Conda 或 pip 安装它们。例如:

conda install <package_name>

或

    pip install <package_name>

通过以上步骤,你应该能够从 Python 3.11.5 回退到 Python 3.9,并在新的 "vits" 环境中继续使用你的项目。请注意,在切换环境版本之前,请确保备份和保存好你需要的任何 Python 3.11.5 版本的代码、库和数据,以免丢失
  • 6
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Build 1632<br>requires software maintenance through 2008.04.03. (Beta release.) <br>New! Added context-sensitive help to VA X dialogs. Click ? or press F1 to get help. (case=8980) <br>New! Visual Studio 2008-style transparent listboxes are available in all IDEs. Hold down Ctrl when listbox is displayed to activate. (case=10072) 7209, 6972 <br>New! Added option to include or exclude refactoring suggestions in listboxes; see Advanced | Refactoring | Include refactoring suggestions in listboxes. (case=10428) 5797, 7254 <br>"return" takes precedence over "RETCODE" in suggestion lists. (case=11277) 7036 <br>Fixed incompatibility with XNA Game Studio 2.0. (case=10703) 7064 <br>Restored "put n spaces between method name and ()" option under Advanced | Corrections. (case=10995) 7304 <br>Fixed a problem typing "else" on a line by itself. (case=8415) <br>Debugger tooltips display without flickering. (case=8817) 6647 <br>Fixed hang when opening web site project in Visual Studio 2008. (case=10401) <br>Fixed intermittent crash when typing a VB Imports statement in Visual Studio 2008 on Windows Vista. (case=15154) <br>Ctrl+Tab document switching is handled properly in Visual Studio 2008. (case=10303) 7010 <br>Visual Studio 2008 C++ include directories that contain double backslashes due to environment variable expansion are located and parsed correctly. (case=11261) <br>Highlight current line works properly in .js and .asp/.aspx files in Visual Studio 2008. (case=15384) <br>Visual Basic enumerations are parsed correctly. (case=12161) <br>Removed C-style comment and semicolon from Encapsulate Field in Visual Basic files. (case=11160, case=4475) 7107 <br>Object methods called on boxed string literals in C# are parsed correctly. (case=8012) 6513 <br>Subsequent rename operations issued from VA Outline target the correct symbol. (case=10502) 7039 <br>MFC dispatch map is shown in VA Outline. (case=10514) <br>Tooltips are positioned correctly when VA Outline is undocked in VC6. (case=9976) 6946 <br>VA Outline shows correct hierarchy for C++ classes containing friend methods without friend class declaration. (case=10740) 7072 <br>.Net symbols are excluded from suggestion lists in unmanaged C++ solutions. (case=11391) 7148 <br>Fixed Extract Method with for each loop in managed C++. (case=14864) 7348 <br>Typing a dot after a C++ constructor invocation [ e.g. std::string("some text"). ] displays member list properly. (case=9876) <br>C++ using declarations (using namespace::identifier) are parsed correctly. (case=9436) <br>STL list<> and vector<> member lists appear correctly following a "using namespace std::list" or "using namespace std::vector" directive. (case=12345) 7226 <br>Empty C++ preprocessor directives are ignored (fixes problem parsing Boost library). (case=10353) <br>Typedefs declared inside template classes are parsed correctly. (case=12098) <br>Improved parsing of STL iterator patterns (case=11842) 7136, 7202, 7212 <br>Improved stability when parsing deep templates. (case=15454) <br>Fixed dereferenced iterators missing from Find References / Rename. (case=1702) 6451, 4978 <br>Cloned Find References windows are not hidden behind the VC6 IDE. (case=10201) 7000, 7026 <br>IDE warning message about writing to a read-only file is brought to the foreground during a rename operation if applicable. (case=8958) <br>#include paths are preserved when typing a slash with Repair Case disabled. (case=12025) 7200 <br>C# generic methods are colored properly. (case=9300) 6801 <br>Comments in tooltips and views use IDE comment color. (case=9363) 6904, 6808 <br>Dialog edit controls are colored properly in Windows Vista. (case=9281) <br>Filenames displayed in lists and views are not syntax colored. (case=12556, case=12788) <br>Foreground text color is automatically changed if it matches the background color. (case=14268) <br>VA View Symbols in Solution list items are colored properly. (case=14899) <br>Quick Info and Parameter Tooltips invoked via the keyboard are colored properly. (case=3082) 5462 <br>Goto (Alt+G) handles template class typedefs. (case=4249) 6168, 5774 <br>Goto handles duplicate files better (as with VSS shared directories). (case=5567, case=7457) 6027, 6021 <br>Listboxes are positioned such that they are not truncated at the right edge of the screen. (case=5178) <br>Listbox remains on the same side of a symbol (either above or below) when typing inside parentheses. (case=8998) 6672 <br>Windows Vista visual styles are applied to listboxes. (case=9275) <br>Accepting a suggestion from a listbox properly replaces acronym text. (case=14290) 7316 <br>Fixed disappearing listboxes in .js and .asax files. (case=1699, case=15295) 4843 <br>Fixed bad icons appearing in suggestion lists. (case=14469) <br>#include directives listed in Find References results are displayed with question mark icons. (case=9592) 6869 <br>Esc key turns off Highlight All when Find References results window is undocked. (case=9364) 6803 <br>Find References error messages may optionally be displayed in the status bar instead of a modal message box. (case=10226) 7038, 6997 <br>Spelling errors in comments with XML tags are underlined. (case=9649) 6893 <br>XML comment suggestion list opened with < functions properly. (case=12324) 7229 <br>Suggestions are suppressed in comments and string literals. (case=10480) 5797, 7030, 7055 <br>Change Signature does not cause some known symbols to become unknown. (case=10432) 6762 <br>"Enable automatic Quick Info Tooltips" option is forced on when enabling "Display comments from source files when available" option in Advanced | Display. (case=10967) <br>Macros in [VA X install directory]\Misc\stdafx.h are parsed each time a project is opened. (case=284) <br>Surround with { indents properly when selection is made from bottom to top. (case=1521) 6792, 5961, 5796, 5249 <br>Long words (>64 chars) in comments are not underlined as mistyped. (case=3485) 5634, 5588 <br>Improved Autosave performance. (case=9821) 6916, 5613 <br>Open File in Solution grid lines are drawn correctly in Windows XP. (case=9948) <br>Forward-declared stable symbols are shown in italic. (case=399) 2263, 1934, 1912 <br>Repair Case changes only those symbols that differ by case alone (similarly named symbols are not changed). (case=8723) <br>Corrected spacing around spell check replacements. (case=7768) 6471 <br>Eliminated spurious suggestions. (case=12061) 6900 <br>Source files residing in directories named p4win or p4v (or their descendants) are included when parsing. (case=11506) 7150 <br>Missing VC6 toolbar icons have been restored (case=10126) 6980 <br>Filtering toolbar shows the rightmost button correctly. (case=10623) 7044 <br><br>中文注释有乱码<br>

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

玩人工智能的辣条哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值