python, vs 2010 & manifest problem

本文提供了一个解决Python中遇到的特定链接错误的方法,通过在相关代码文件中添加一行代码来修复问题。

 

   It looks like python community doesn't intend to "fix" this problem due to it is probably not a bug.

 

a quick work around is 

 

open /distutils/msvc9compiler.py

 

find def manifest_setup_ldargs(self, output_filename, build_temp, ld_args)

 

add

 

ld_args.append('/MANIFEST')

 

right beneath ld_args.append('/MANIFESTFILE:' + temp_manifest)

 

it will fix a link error.

 

 

Last login: Wed Dec 10 22:30:42 on ttys009 mac@bogon ~ % cd /Users/mac/Downloads/Problem_Set_5 mac@bogon Problem_Set_5 % pip install torch torchvision tensorboard zsh: command not found: pip mac@bogon Problem_Set_5 % brew --version Homebrew 5.0.3 mac@bogon Problem_Set_5 % brew install python ==> Auto-updating Homebrew... Adjust how often this is run with `$HOMEBREW_AUTO_UPDATE_SECS` or disable with `$HOMEBREW_NO_AUTO_UPDATE=1`. Hide these hints with `$HOMEBREW_NO_ENV_HINTS=1` (see `man brew`). ==> Fetching downloads for: python@3.14 Warning: Bottle missing, falling back to the default domain... ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2025- Warning: Bottle missing, falling back to the default domain... ==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.3.1 ######################################################################### 100.0% Warning: Bottle missing, falling back to the default domain... ==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.50.4-2 ######################################################################### 100.0% ######################################################################### 100.0% Warning: Bottle missing, falling back to the default domain... ==> Downloading https://ghcr.io/v2/homebrew/core/zstd/manifests/1.5.7-1 ✔︎ Bottle mpdecimal (4.0.1) [Downloaded 185.7KB/185.7KB] ✔︎ Bottle xz (5.8.1) [Downloaded 748.1KB/748.1KB] ✔︎ Bottle lz4 (1.10.0) [Downloaded 276.1KB/276.1KB] Warning: Bottle missing, falling back to the default domain...g 98.3KB/133.0KB] ==> Downloading https://ghcr.io/v2/homebrew/core/python/3.14/manifests/3.14.0-1 Warning: Bottle missing, falling back to the default domain... ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.6.0 ✔︎ Bottle ca-certificates (2025-09-09) [Downloaded 133.0KB/133.0KB] #### 5.9######################################################################### 100.0% ################################ 44.8######################################################################### 100.0% ############################################## 63.6######################################################################### 100.0% ✔︎ Bottle zstd (1.5.7) [Downloaded 788.5KB/788.5KB] ✔︎ Bottle readline (8.3.1) [Downloaded 758.2KB/758.2KB] ✔︎ Bottle sqlite (3.50.4) [Downloaded 2.4MB/ 2.4MB] ✔︎ Bottle openssl@3 (3.6.0) [Downloaded 10.9MB/ 10.9MB] ✔︎ Bottle python@3.14 (3.14.0) [Downloaded 18.7MB/ 18.7MB] ==> Installing dependencies for python@3.14: mpdecimal, ca-certificates, openssl@3, readline, sqlite, xz, lz4 and zstd ==> Installing python@3.14 dependency: mpdecimal ==> Pouring mpdecimal-4.0.1.arm64_sequoia.bottle.tar.gz 🍺 /opt/homebrew/Cellar/mpdecimal/4.0.1: 22 files, 661KB ==> Installing python@3.14 dependency: ca-certificates ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2025- Already downloaded: /Users/mac/Library/Caches/Homebrew/downloads/4d4fbd31e178e7d46676ee46b8a629a56cf084bda67d2ae2d543a7a9b8d0718a--ca-certificates-2025-09-09-1.bottle_manifest.json ==> Pouring ca-certificates--2025-09-09.all.bottle.1.tar.gz ==> Regenerating CA certificate bundle from keychain, this may take a while... 🍺 /opt/homebrew/Cellar/ca-certificates/2025-09-09: 4 files, 238.4KB ==> Installing python@3.14 dependency: openssl@3 ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.6.0 Already downloaded: /Users/mac/Library/Caches/Homebrew/downloads/403c903e557d19d801f4c6b4f635c9553af72a487024139a5773e636c884ef9e--openssl@3-3.6.0.bottle_manifest.json ==> Pouring openssl@3--3.6.0.arm64_sequoia.bottle.tar.gz 🍺 /opt/homebrew/Cellar/openssl@3/3.6.0: 7,609 files, 37.7MB ==> Installing python@3.14 dependency: readline ==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.3.1 Already downloaded: /Users/mac/Library/Caches/Homebrew/downloads/52cb2bb3f0d9e66789968b865501c41ed80dc303eb488939476b309f1d350dc5--readline-8.3.1.bottle_manifest.json ==> Pouring readline--8.3.1.arm64_sequoia.bottle.tar.gz 🍺 /opt/homebrew/Cellar/readline/8.3.1: 56 files, 2.7MB ==> Installing python@3.14 dependency: sqlite ==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.50.4-2 Already downloaded: /Users/mac/Library/Caches/Homebrew/downloads/cc0b46a30077b6cb9f6927fc0c81145398349a0ba416b914b1e5485d0d678231--sqlite-3.50.4-2.bottle_manifest.json ==> Pouring sqlite--3.50.4.arm64_sequoia.bottle.2.tar.gz 🍺 /opt/homebrew/Cellar/sqlite/3.50.4: 13 files, 5.1MB ==> Installing python@3.14 dependency: xz ==> Pouring xz-5.8.1.arm64_sequoia.bottle.tar.gz 🍺 /opt/homebrew/Cellar/xz/5.8.1: 96 files, 2.6MB ==> Installing python@3.14 dependency: lz4 ==> Pouring lz4-1.10.0.arm64_sequoia.bottle.1.tar.gz 🍺 /opt/homebrew/Cellar/lz4/1.10.0: 24 files, 730.6KB ==> Installing python@3.14 dependency: zstd ==> Downloading https://ghcr.io/v2/homebrew/core/zstd/manifests/1.5.7-1 Already downloaded: /Users/mac/Library/Caches/Homebrew/downloads/14f45413747fef87558cd195b1104e55d9739f9574f146051dbd6569ded74a94--zstd-1.5.7-1.bottle_manifest.json ==> Pouring zstd--1.5.7.arm64_sequoia.bottle.1.tar.gz 🍺 /opt/homebrew/Cellar/zstd/1.5.7: 32 files, 2.3MB ==> Installing python@3.14 ==> Pouring python@3.14--3.14.0.arm64_sequoia.bottle.1.tar.gz ==> Caveats Python is installed as /opt/homebrew/bin/python3 Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to `python3`, `python3-config`, `pip3` etc., respectively, are installed into /opt/homebrew/opt/python@3.14/libexec/bin `idle3.14` requires tkinter, which is available separately: brew install python-tk@3.14 See: https://docs.brew.sh/Homebrew-and-Python ==> Summary 🍺 /opt/homebrew/Cellar/python@3.14/3.14.0: 3,743 files, 72.9MB ==> Running `brew cleanup python@3.14`... Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`. Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`). ==> Caveats ==> python@3.14 Python is installed as /opt/homebrew/bin/python3 Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to `python3`, `python3-config`, `pip3` etc., respectively, are installed into /opt/homebrew/opt/python@3.14/libexec/bin `idle3.14` requires tkinter, which is available separately: brew install python-tk@3.14 See: https://docs.brew.sh/Homebrew-and-Python mac@bogon Problem_Set_5 % python3 --version Python 3.13.9 mac@bogon Problem_Set_5 % which python3 /usr/local/bin/python3 mac@bogon Problem_Set_5 % uname -m arm64 mac@bogon Problem_Set_5 % which brew /opt/homebrew/bin/brew mac@bogon Problem_Set_5 % ls /opt/homebrew/bin/python* /opt/homebrew/bin/python3 /opt/homebrew/bin/python3.14 /opt/homebrew/bin/python3-config /opt/homebrew/bin/python3.14-config mac@bogon Problem_Set_5 % echo $PATH /Users/mac/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands mac@bogon Problem_Set_5 % hash -r mac@bogon Problem_Set_5 % which python3 /opt/homebrew/bin/python3 mac@bogon Problem_Set_5 % cd /Users/mac/Downloads/Problem_Set_5 mac@bogon Problem_Set_5 % ls CV_HW_5.pdf main.py mac@bogon Problem_Set_5 % python -m venv venv zsh: command not found: python mac@bogon Problem_Set_5 %
最新发布
12-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值