{"id":1406,"date":"2023-08-19T08:32:25","date_gmt":"2023-08-19T08:32:25","guid":{"rendered":"http:\/\/www.netexl.com\/blog\/?p=1406"},"modified":"2026-04-02T09:02:43","modified_gmt":"2026-04-02T09:02:43","slug":"sadtalker-error-no-matching-distribution-found-for-torch1-12-1cu113","status":"publish","type":"post","link":"https:\/\/www.netexl.com\/blog\/sadtalker-error-no-matching-distribution-found-for-torch1-12-1cu113\/","title":{"rendered":"SadTalker ERROR: No matching distribution found for torch==1.12.1+cu113"},"content":{"rendered":"\n<p>If you have Python 3.11 installed on your system, you will get this error when running the webui.bat file for setting up the SadTalker since it does not yet support Python 3.11. The solution is to install previous version of Python (in my case I did Python 3.8 as specified in the dependecies section of cog.yaml which downloaded with the SadTalker code). We will use conda to create a virtual environment just for SadTalker and then use it from there. <\/p>\n\n\n\n<p>The first step is to make sure we have Anaconda installed on our system. If not then download and install it from <a href=\"https:\/\/www.anaconda.com\/\" target=\"_blank\" rel=\"noopener\" title=\"\">here<\/a>. <\/p>\n\n\n\n<p>Make sure to follow the steps <a href=\"https:\/\/www.netexl.com\/blog\/install-sadtalker-on-windows\" target=\"_blank\" rel=\"noopener\" title=\"\">here<\/a> for downloading the SadTalker files.<\/p>\n\n\n\n<p>Launch Anaconda Powershell and run following command to create a new environment for older version of python.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>conda create -n sadtalker python=3.8.0 anaconda<\/code><\/pre>\n\n\n\n<p>Now activate the environment<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>conda activate sadtalker<\/code><\/pre>\n\n\n\n<p>Make sure to validate that it is using desired version of python by checking python version<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python --version<\/code><\/pre>\n\n\n\n<p>In Anaconda powershell go to the SadTalker directory which you created during the setup earlier (refer to previous article link for the same). Now run webui.bat file in the powershell as following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\\webui.bat<\/code><\/pre>\n\n\n\n<p>This will take a while to download and setup all required packages the first time. For all future launches run the same batch file and it will open quickly. Once the setup finishes, you will see a message in the command prompt with URL to run it in browser. Copy and paster the URL in your browser<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"382\" height=\"44\" src=\"https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-11.png\" alt=\"\" class=\"wp-image-1408\" srcset=\"https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-11.png 382w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-11-300x35.png 300w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-11-280x32.png 280w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/figure>\n\n\n\n<p>Copy the URL in browser will open the SadTalker in browser as following<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"525\" src=\"https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-13-1024x525.png\" alt=\"\" class=\"wp-image-1413\" srcset=\"https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-13-1024x525.png 1024w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-13-300x154.png 300w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-13-768x394.png 768w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-13-280x144.png 280w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2023\/08\/image-13.png 1338w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you have Python 3.11 installed on your system, you will get this error when running the webui.bat file for setting up the SadTalker since it does not yet support Python 3.11. The solution is to install previous version of Python (in my case I did Python 3.8 as specified in the dependecies section of cog.yaml which downloaded with the SadTalker code). We will use conda to create a virtual environment just for SadTalker and then use it from there. The first step is to make sure we have Anaconda installed on our system. If not then download and install it from here. Make sure to follow the steps here for downloading the SadTalker files. Launch Anaconda Powershell and run following command to create a new environment for older version of python. Now activate the environment Make sure to validate that it is using desired version of python by checking[&#8230;]<\/p>\n","protected":false},"author":5,"featured_media":1537,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,14,37,34],"tags":[],"class_list":["post-1406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-how-to","category-python","category-useful"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/comments?post=1406"}],"version-history":[{"count":4,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1406\/revisions"}],"predecessor-version":[{"id":1422,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1406\/revisions\/1422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media\/1537"}],"wp:attachment":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media?parent=1406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/categories?post=1406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/tags?post=1406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}