卸载从命令行工具下载的 Python3

时间:2021-07-10 15:18:52

标签: python-3.x uninstallation arm64 apple-m1 command-line-tool

我使用 xcode 命令行工具安装了 python 3.8.2,但现在根据这个 article 我应该删除它以下载 Miniforge3。我不知道该怎么做,所以现在我在运行命令时遇到了这个错误

    <!DOCTYPE html>
<html>
    <head>
    </head>
    <body>
        <div id="thumbs"  style="width:216px;height:468px;border: 5px solid blue;background-color:red;"><canvas onmouseover="getid1(this);" onmouseout="getid2(this);" id="canvas1"></canvas></div>

        <script>
            var thumbsList = [];
            var delay = 100;
            var i = 0;
            var video = document.createElement("video");
            var a = 0;
            var m = document.getElementById("canvas1");
            var mtx = m.getContext("2d");
            var generate = true;
            var animstop = false;
            var vidFrames = 64;
        
            m.width = 216;
            m.height = 468;
            video.preload = "auto";
            video.src = "aaaa.mp4";
            
            function stranim(bb){
                    if(generate){
                        animstop = false;
                        video.currentTime = i;
                        generateVid();
                        generate = false;
                    }else{
                        animstop = false;
                        startAnim();
                    }
            }
            
            function stpanim(bb) {
                
                clearTimeout();
                animstop = true;
                mtx.drawImage(thumbsList[0], 0, 0); 
            }
            // if i replace this section with generateVid() the code is working
            /*video.addEventListener('seeked', function() {
                var d = (video.duration / vidFrames) * 2;
                generateThumbnail();
                i += video.duration / vidFrames;
                if (i <= video.duration) {
                    video.currentTime = i;
                    generateVid()
                    if(d == i){
                        startAnim();
                    }
                }
            });*/

            function generateVid() {
                var d = (video.duration / vidFrames) * 2;
                generateThumbnail();
                i += video.duration / vidFrames;
                if (i <= video.duration) {
                    video.currentTime = i;
                    generateVid();
                    if(d == i){
                        startAnim();
                    }
                }
            }
            
            
                
            function generateFirstThumbnail() {
                var c = document.createElement("canvas");
                var ctx = c.getContext("2d");
                c.width = 216;
                c.height = 468;
                ctx.drawImage(video, 0, 0, 216, 468);
                thumbsList.push(c); 
                thumbs.appendChild(m);
                mtx.drawImage(thumbsList[0], 0, 0); 
                i += video.duration / vidFrames;
            }
                
            function generateThumbnail() {
                var c = document.createElement("canvas");
                var ctx = c.getContext("2d");
                c.width = 216;
                c.height = 468;
                ctx.drawImage(video, 0, 0, 216, 468);
                thumbsList.push(c); 
            }

            function startAnim() {
                var currentFrame = 0;
                function anim() {               
                    if(currentFrame != (vidFrames - 1) && animstop == false){
                        currentFrame = (currentFrame + 1) % thumbsList.length;
                        mtx.drawImage(thumbsList[currentFrame], 0, 0);                          
                        setTimeout(anim, delay); 
                    }
                }
                anim(); 
            }
            
            function getid1(obj) {
                stranim(obj.id)
            }
            
            function getid2(obj) {
                stpanim(obj.id)
            }
            window.onload = function(){
                
                generateFirstThumbnail();
            };
            
        </script>
    </body>
</html>

architecture error

根据文章和一些在线资源,它应该只显示 arm64 而我的显示 arm64e。当我导航到 condabin 文件夹并尝试运行 conda init 时,它崩溃了。

我想我应该删除Python3并重新启动Miniforge安装过程,但我不知道如何删除它。我试过了

file $(which python)

但它说:不允许操作

0 个答案:

没有答案