Skip to content

Commit

Permalink
hexo next
Browse files Browse the repository at this point in the history
  • Loading branch information
syx11237744 committed Oct 3, 2024
1 parent f3b4c2c commit ef46c19
Show file tree
Hide file tree
Showing 379 changed files with 16,941 additions and 29,542 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added 2024/.DS_Store
Binary file not shown.
Binary file added 2024/06/.DS_Store
Binary file not shown.
306 changes: 306 additions & 0 deletions 2024/06/28/2024/06/28/000001/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 7.2.0">

<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha256-XOqroi11tY4EFQMR9ZYwZWKj5ZXiftSx36RRuC3anlA=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"tzh21.github.io","root":"/","images":"/images","scheme":"Pisces","darkmode":false,"version":"8.20.0","exturl":false,"sidebar":{"position":"left","width_expanded":320,"width_dual_column":240,"display":"post","padding":18,"offset":12},"copycode":{"enable":false,"style":null},"fold":{"enable":false,"height":500},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"i18n":{"placeholder":"Searching...","empty":"We didn't find any results for the search: ${query}","hits_time":"${hits} results found in ${time} ms","hits":"${hits} results found"}}</script><script src="/js/config.js"></script>

<meta name="description" content="问题:pip 安装模块后无法使用在 conda 虚拟环境中,使用 pip install xxx 后仍然无法使用该模块。 解决原因可能是使用的 pip 不是当前 conda 环境中的 pip。 使用 which python 检查 python 路径。应该输出 conda 环境中的 python 路径。格式类似于 &#x2F;home&#x2F;&lt;username&gt;&#x2F;miniconda3&#x2F;envs&#x2F;&amp;lt">
<meta property="og:type" content="article">
<meta property="og:title" content="在 Conda 环境下使用 pip">
<meta property="og:url" content="https://tzh21.github.io/2024/06/28/2024/06/28/000001/index.html">
<meta property="og:site_name" content="tzh21&#39;s Blog">
<meta property="og:description" content="问题:pip 安装模块后无法使用在 conda 虚拟环境中,使用 pip install xxx 后仍然无法使用该模块。 解决原因可能是使用的 pip 不是当前 conda 环境中的 pip。 使用 which python 检查 python 路径。应该输出 conda 环境中的 python 路径。格式类似于 &#x2F;home&#x2F;&lt;username&gt;&#x2F;miniconda3&#x2F;envs&#x2F;&amp;lt">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2024-06-28T07:47:30.000Z">
<meta property="article:modified_time" content="2024-10-03T05:11:35.877Z">
<meta property="article:author" content="tzh21">
<meta property="article:tag" content="Conda">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://tzh21.github.io/2024/06/28/2024/06/28/000001/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"en","comments":true,"permalink":"https://tzh21.github.io/2024/06/28/2024/06/28/000001/","path":"2024/06/28/2024/06/28/000001/","title":"在 Conda 环境下使用 pip"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>在 Conda 环境下使用 pip | tzh21's Blog</title>









<noscript>
<link rel="stylesheet" href="/css/noscript.css">
</noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
<div class="headband"></div>

<main class="main">
<div class="column">
<header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="Toggle navigation bar" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
</div>

<div class="site-meta">

<a href="/" class="brand" rel="start">
<i class="logo-line"></i>
<p class="site-title">tzh21's Blog</p>
<i class="logo-line"></i>
</a>
</div>

<div class="site-nav-right">
<div class="toggle popup-trigger" aria-label="Search" role="button">
</div>
</div>
</div>



<nav class="site-nav">
<ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>Tags</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a></li>
</ul>
</nav>




</header>


<aside class="sidebar">

<div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
<ul class="sidebar-nav">
<li class="sidebar-nav-toc">
Table of Contents
</li>
<li class="sidebar-nav-overview">
Overview
</li>
</ul>

<div class="sidebar-panel-container">
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
<div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%97%AE%E9%A2%98%EF%BC%9Apip-%E5%AE%89%E8%A3%85%E6%A8%A1%E5%9D%97%E5%90%8E%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8"><span class="nav-number">1.</span> <span class="nav-text">问题:pip 安装模块后无法使用</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%A7%A3%E5%86%B3"><span class="nav-number">1.1.</span> <span class="nav-text">解决</span></a></li></ol></li></ol></div>
</div>
<!--/noindex-->

<div class="site-overview-wrap sidebar-panel">
<div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
<p class="site-author-name" itemprop="name">tzh21</p>
<div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap animated">
<nav class="site-state">
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">9</span>
<span class="site-state-item-name">tags</span></a>
</div>
</nav>
</div>

</div>
</div>
<div class="back-to-top animated" role="button" aria-label="Back to top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
</div>


</aside>


</div>

<div class="main-inner post posts-expand">





<div class="post-block">



<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="en">
<link itemprop="mainEntityOfPage" href="https://tzh21.github.io/2024/06/28/2024/06/28/000001/">

<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="tzh21">
</span>

<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="tzh21's Blog">
<meta itemprop="description" content="">
</span>

<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="在 Conda 环境下使用 pip | tzh21's Blog">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
在 Conda 环境下使用 pip
</h1>

<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>

<time title="Created: 2024-06-28 15:47:30" itemprop="dateCreated datePublished" datetime="2024-06-28T15:47:30+08:00">2024-06-28</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2024-10-03 13:11:35" itemprop="dateModified" datetime="2024-10-03T13:11:35+08:00">2024-10-03</time>
</span>


</div>

</div>
</header>




<div class="post-body" itemprop="articleBody"><h2 id="问题:pip-安装模块后无法使用"><a href="#问题:pip-安装模块后无法使用" class="headerlink" title="问题:pip 安装模块后无法使用"></a>问题:pip 安装模块后无法使用</h2><p>在 conda 虚拟环境中,使用 <code>pip install xxx</code> 后仍然无法使用该模块。</p>
<h3 id="解决"><a href="#解决" class="headerlink" title="解决"></a>解决</h3><p>原因可能是使用的 <code>pip</code> 不是当前 <code>conda</code> 环境中的 <code>pip</code></p>
<p>使用 <code>which python</code> 检查 python 路径。应该输出 conda 环境中的 python 路径。格式类似于 <code>/home/&lt;username&gt;/miniconda3/envs/&lt;env_name&gt;/bin/python</code></p>
<p>使用 <code>which pip</code> 检查 pip 路径。如果输出的不是 <code>/home/&lt;username&gt;/miniconda3/envs/&lt;env_name&gt;/bin/pip</code>(我这里是 <code>/home/markllm/.local/bin/pip</code>,也就是本地 python 的 pip),说明 <code>pip</code> 不是当前 <code>conda</code> 环境中的 <code>pip</code></p>
<p>使用 <code>python -m pip install xxx</code> 替代 <code>pip install</code>,就能指定使用当前 conda 环境中的 pip。</p>

</div>





<footer class="post-footer">
<div class="post-tags">
<a href="/tags/Conda/" rel="tag"><i class="fa fa-tag"></i> Conda</a>
</div>



<div class="post-nav">
<div class="post-nav-item">
<a href="/2024/06/28/2024/06/28/000002/" rel="prev" title="MacOS VPN 连接内网服务器进行开发">
<i class="fa fa-angle-left"></i> MacOS VPN 连接内网服务器进行开发
</a>
</div>
<div class="post-nav-item">
<a href="/2024/06/30/2024/06/30/103754/" rel="next" title="ADVANCING BEYOND IDENTIFICATION: MULTI-BIT WATERMARK FOR LARGE LANGUAGE MODELS 论文笔记">
ADVANCING BEYOND IDENTIFICATION: MULTI-BIT WATERMARK FOR LARGE LANGUAGE MODELS 论文笔记 <i class="fa fa-angle-right"></i>
</a>
</div>
</div>
</footer>
</article>
</div>






</div>
</main>

<footer class="footer">
<div class="footer-inner">

<div class="copyright">
&copy;
<span itemprop="copyrightYear">2024</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">tzh21</span>
</div>
<div class="powered-by">Powered by <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/pisces/" rel="noopener" target="_blank">NexT.Pisces</a>
</div>

</div>
</footer>


<div class="toggle sidebar-toggle" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
<div class="sidebar-dimmer"></div>
<div class="reading-progress-bar"></div>

<noscript>
<div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>



<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/next-theme-pjax/0.6.0/pjax.min.js" integrity="sha256-vxLn1tSKWD4dqbMRyv940UYw4sXgMtYcK6reefzZrao=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/sidebar.js"></script><script src="/js/next-boot.js"></script><script src="/js/pjax.js"></script>















<script class="next-config" data-name="enableMath" type="application/json">true</script><script class="next-config" data-name="mathjax" type="application/json">{"enable":true,"tags":"none","js":{"url":"https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js","integrity":"sha256-MASABpB4tYktI2Oitl4t+78w/lyA+D7b/s9GEP0JOGI="}}</script>
<script src="/js/third-party/math/mathjax.js"></script>



</body>
</html>
Loading

0 comments on commit ef46c19

Please sign in to comment.